Re: [Zope] Reloading file objects?
Peter Arvidsson writes: Does anyone know a way to get the file to show the new pdf-file when I want to view it? You can use an "Expires" header to control how long a browser might cache a page. Dieter ___ Zope maillist - [EMAIL PROTECTED] 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 )
Re: [Zope] Reloading file objects?
I later found out this was a bug. The bug was reported 1999-10-12 as number 754: [754] Zope Bug: Uploaded Images Don't Appear Immediately Category: General Last Updated: Oct 29, 1999 7:05 am Submitted On: Oct 12, 1999 3:58 am Status: Ongoing Reported Version: 2.0.1 Expected/Fixed Version: Strange that is is still ongoing after almost a year. Anyway the problem was that it always used the cached file and a discussion about this was found in the archives: http://zope.nipltd.com/public/lists/zope-archive.nsf/Main/AED89A938194225580256857007679ED?OpenDocumentmode=subjecttopic=[Zope]Dumbobjectaliasingquestion I chunked it into the collector again as bugreport 809 so we just have to wait and see now. Peter Terry Kerr skrev: are u using netscape? this seems to be a netscape cache problem. The same happens with images. You have to download the image to harddisk for netscape to update its cache. Peter Arvidsson wrote: 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 - [EMAIL PROTECTED] 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 ) -- Terry Kerr ([EMAIL PROTECTED]) Adroit Internet Solutions Pty Ltd (www.adroit.net) Phone: +613 9563 4461 Fax: +613 9563 3856 Mobile: +61 414 938 124 ICQ: 79303381 ___ Zope maillist - [EMAIL PROTECTED] 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 - [EMAIL PROTECTED] 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] 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 - [EMAIL PROTECTED] 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 )
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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Namens Peter Arvidsson Verzonden: donderdag 10 augustus 2000 12:56 Aan: [EMAIL PROTECTED] 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 - [EMAIL PROTECTED] 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 - [EMAIL PROTECTED] 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 )
RE: [Zope] Reloading file objects?
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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Namens Peter Arvidsson Verzonden: donderdag 10 augustus 2000 12:56 Aan: [EMAIL PROTECTED] 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 - [EMAIL PROTECTED] 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 - [EMAIL PROTECTED] 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 - [EMAIL PROTECTED] 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 )
Re: [Zope] Reloading file objects?
are u using netscape? this seems to be a netscape cache problem. The same happens with images. You have to download the image to harddisk for netscape to update its cache. Peter Arvidsson wrote: 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 - [EMAIL PROTECTED] 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 ) -- Terry Kerr ([EMAIL PROTECTED]) Adroit Internet Solutions Pty Ltd (www.adroit.net) Phone: +613 9563 4461 Fax: +613 9563 3856 Mobile: +61 414 938 124 ICQ: 79303381 ___ Zope maillist - [EMAIL PROTECTED] 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 )