a simple workaround, but one that pretty much prevents any caching anywhere, is to append the URL for this file with a changing query string, e.g. a timestamp. this is what it would look like: <untested> <a href="<dtml-var name="my_file">?x=<dtml-var expr="ZopeTime()" fmt="%H%M%S">">My File</a> </untested> jens
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Peter Arvidsson Sent: Thursday, August 10, 2000 07:29 To: Gijs Reulen Cc: Mailinglist Zope Subject: Re: [Zope] Reloading file objects?
Something like that will probably work but I cant tell everyone that visit the site to change their IE settings :/
Gijs Reulen skrev:
Have you tried to disable the browser cache (or 'temp
internet files') ?
-----Oorspronkelijk bericht----- Van: zope-admin@zope.org [mailto:zope-admin@zope.org]Namens Peter Arvidsson Verzonden: donderdag 10 augustus 2000 12:56 Aan: zope@zope.org Onderwerp: [Zope] Reloading file objects?
I have file-objects containing pdf-files. When I change
the object to
contain another pdf-file (with "manage_upload") I get a problem. When I want to view the file it still shows the old file. However when I choose save to disk I get the new object and if I take a look at its properties (size etc...) they are for the new object.
Does anyone know a way to get the file to show the new pdf-file when I want to view it?
I have tried to put <META HTTP-EQUIV="Pragma" CONTENT="no-cache"> in the page where I have the link to the file but that doesnt affect the file when I open it. The link I use are the path for the file as it is on the view-tab of the object. Is there some way to get it to show the new file when I view it and not only when I save it to disk or open it in a new window?
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
A very smart thing to do. Unfortunately this was not successful... when I sent an argument like this: <a href="<dtml-var "absolute_url()">/pdf/&dtml-entry;?x=<dtml-var "_.str(_.int(ZopeTime()))">"> My pdf-file couldnt be displayed. It didnt recognize the argument and told me to download some stuff from Microsoft or something... is there any other way to do it? Or is there any arguments pdf-files can handle and is not important (e.g. can be set to a dummy value)? Jens Vagelpohl skrev:
a simple workaround, but one that pretty much prevents any caching anywhere, is to append the URL for this file with a changing query string, e.g. a timestamp. this is what it would look like:
<untested> <a href="<dtml-var name="my_file">?x=<dtml-var expr="ZopeTime()" fmt="%H%M%S">">My File</a> </untested>
jens
participants (2)
-
Jens Vagelpohl -
Peter Arvidsson