RE: [Zope-dev] Cache-bug in handling of files
I have fileobjects where I store pdf-files. If I want to change the pdf-file I use the method "manage_upload". The problem is that if I try to view it it always choose the one that is in the cache. It displays the new one if I open it in a new window or if I save it to disk. The filesize and everything else is for the new file.
That sounds very suspicious - what are your IE cache settings?
This points to a bug report and after serching for it I found it:
[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:
The strange thing is that this is still Ongoing after almost a year since it was submitted!
This bug report was related to the fact that the user was accessing the file through a Squid cache and that at the time (Zope 2.0.1) there was a legitimate bug in the way that "If-Modified-Since" headers were handled. Squid was actually returning the file to him. It should have been marked completed quite a while ago (I just did that). I am using IE 5 (5.00.2314.1003), cache settings set to: "Check for newer versions of stored pages: x Every visit to the page ...and I cannot reproduce the problem that you are describing :( Are these your cache settings? Are you accessing the server through any kind of proxy? Thanks Brian Lloyd brian@digicool.com Software Engineer 540.371.6909 Digital Creations http://www.digicool.com
That sounds very suspicious - what are your IE cache settings?
[...]
This bug report was related to the fact that the user was accessing the file through a Squid cache and that at the time (Zope 2.0.1) there was a legitimate bug in the way that "If-Modified-Since" headers were handled. Squid was actually returning the file to him. It should have been marked completed quite a while ago (I just did that).
I am using IE 5 (5.00.2314.1003), cache settings set to:
"Check for newer versions of stored pages: x Every visit to the page
...and I cannot reproduce the problem that you are describing :( Are these your cache settings? Are you accessing the server through any kind of proxy?
Thanks
I am using IE 5 (5.00.2919.6307), cache settings set to: "Check for newer versions of stored pages: Automatically Those settings should get the new file if it has changed. I am accessing the server through a proxy.. could that be a problem? I think it would be strange if everyone accessing the website I am building can see the new files.. What do you think? Peter
participants (2)
-
Brian Lloyd -
Peter Arvidsson