If I add a new image, call it img1 and view it outside of manage, all is well. If I replace that image and view it. It hasn't changed ?? If I view it in manage it's the new image. Restarting Zope doesn't help. If I now change this image in manage a second time it won't change. But it's size changed, just not the image. I picked up the CVS version deleted Data.fs and started over, with the same results. Shouldn't I be able to change an image ? Any idea where the code is that decides to render one way for local manage and another way for the remote user ? I'll find it eventually ....gurrr --Darrell
Your browser is caching the image. If your image is at http://localhost:8080/myimage, go there and view it (outside the management interface). You'll see the old image. Now (for netscape and IE), press and hold the shift key and click the reload/refresh button on the browser's task bar. You should be presented with the new image. Darrell wrote:
If I add a new image, call it img1 and view it outside of manage, all is well. If I replace that image and view it. It hasn't changed ?? If I view it in manage it's the new image.
Restarting Zope doesn't help.
If I now change this image in manage a second time it won't change. But it's size changed, just not the image.
I picked up the CVS version deleted Data.fs and started over, with the same results. Shouldn't I be able to change an image ?
Any idea where the code is that decides to render one way for local manage and another way for the remote user ? I'll find it eventually ....gurrr
--Darrell
-- Chris McDonough Digital Creations, Inc. Zope - http://www.zope.org
Your browser is caching the image.
If your image is at http://localhost:8080/myimage, go there and view it (outside the management interface). You'll see the old image.
Now (for netscape and IE), press and hold the shift key and click the reload/refresh button on the browser's task bar.
You should be presented with the new image.
Didn't change anything. Still the same image. --Darrell
I'm still pretty sure it's the browser cache. Try viewing the image with a query string attached to its id. For example, if you're viewing the image at http://localhost:8080/myimage, try typing "http://localhost:8080/myimage?dummy=1" into the browser's address bar and see what comes up. HTH, Chris Darrell wrote:
Your browser is caching the image.
If your image is at http://localhost:8080/myimage, go there and view it (outside the management interface). You'll see the old image.
Now (for netscape and IE), press and hold the shift key and click the reload/refresh button on the browser's task bar.
You should be presented with the new image.
Didn't change anything. Still the same image.
--Darrell
I ran into something like this. I wound up making a copy of the new image to a new name. Deleting the version that has the real name, and then copying the file back over. Simply renaming it again didn't work. It is a pretty ugly bug. I figured it was a cache problem, so I didn't check into it until I saw your mail. I have since reverified, and it is definitely not the browser cache. --sam Darrell wrote:
If I add a new image, call it img1 and view it outside of manage, all is well. If I replace that image and view it. It hasn't changed ?? If I view it in manage it's the new image. Restarting Zope doesn't help. If I now change this image in manage a second time it won't change. But it's size changed, just not the image. I picked up the CVS version deleted Data.fs and started over, with the same results. Shouldn't I be able to change an image ? Any idea where the code is that decides to render one way for local manage and another way for the remote user ? I'll find it eventually ....gurrr --Darrell
Sorry for the code on this list. Wasn't sure about moving it to ZopeDev. This fixes the problem for the outside caller. The images change in sync with what ever you upload. I changed > to < self._p_mtime is the date of the object in zope and ms is the changed since date from the browser. OFS/image.py line: 187 # Attempt to handle If-Modified-Since headers. ms=REQUEST.get_header('If-Modified-Since', None) if ms is not None: ms=string.split(ms, ';')[0] ms=DateTime(ms).timeTime() if self._p_mtime < ms: RESPONSE.setStatus(304) return RESPONSE If 304 is set, it means the data hasn't changed. 304: ('Not modified', 'Document has not changed singe given time'), This doesn't fix it for manage though. I'll look at that one tonight. --Darrell ----- Original Message ----- From: Darrell To: Zope@zope.org Sent: Monday, December 27, 1999 10:27 PM Subject: [Zope] Dumb object aliasing question If I add a new image, call it img1 and view it outside of manage, all is well. If I replace that image and view it. It hasn't changed ?? If I view it in manage it's the new image. Restarting Zope doesn't help. If I now change this image in manage a second time it won't change. But it's size changed, just not the image. I picked up the CVS version deleted Data.fs and started over, with the same results. Shouldn't I be able to change an image ? Any idea where the code is that decides to render one way for local manage and another way for the remote user ? I'll find it eventually ....gurrr --Darrell
This was discussed recently on Zope-dev. There are different solutions for Windows and Unix, hopefully DC will put a fix for both in the next version of Zope. -- Itamar S.T. itamars@ibm.net
Itamar wrote:
This was discussed recently on Zope-dev. There are different solutions for Windows and Unix, hopefully DC will put a fix for both in the next version of Zope.
Looks like I wasted my effort. This note has the solution. From itamars@ibm.net Mon, 13 Dec 1999 11:41:35 +0200 Date: Mon, 13 Dec 1999 11:41:35 +0200 From: Itamar Shtull-Trauring itamars@ibm.net Subject: [Zope-dev] problems with file caching --Darrell
Manage also works with this patch. Just had to change the setting in IE that has it check each time for a new image. --Darrell ----- Original Message ----- From: Darrell To: Darrell ; Zope@zope.org Sent: Tuesday, December 28, 1999 10:52 AM Subject: Re: [Zope] Dumb object aliasing question Sorry for the code on this list. Wasn't sure about moving it to ZopeDev. This fixes the problem for the outside caller. The images change in sync with what ever you upload. I changed > to < self._p_mtime is the date of the object in zope and ms is the changed since date from the browser. OFS/image.py line: 187 # Attempt to handle If-Modified-Since headers. ms=REQUEST.get_header('If-Modified-Since', None) if ms is not None: ms=string.split(ms, ';')[0] ms=DateTime(ms).timeTime() if self._p_mtime < ms: RESPONSE.setStatus(304) return RESPONSE If 304 is set, it means the data hasn't changed. 304: ('Not modified', 'Document has not changed singe given time'), This doesn't fix it for manage though. I'll look at that one tonight. --Darrell ----- Original Message ----- From: Darrell To: Zope@zope.org Sent: Monday, December 27, 1999 10:27 PM Subject: [Zope] Dumb object aliasing question If I add a new image, call it img1 and view it outside of manage, all is well. If I replace that image and view it. It hasn't changed ?? If I view it in manage it's the new image. Restarting Zope doesn't help. If I now change this image in manage a second time it won't change. But it's size changed, just not the image. I picked up the CVS version deleted Data.fs and started over, with the same results. Shouldn't I be able to change an image ? Any idea where the code is that decides to render one way for local manage and another way for the remote user ? I'll find it eventually ....gurrr --Darrell
participants (5)
-
Chris McDonough -
Darrell -
Darrell -
Itamar Shtull-Trauring -
Sam Gendler