Page 1 of 1

staled cache

PostPosted: Sun Sep 07, 2003 9:35 am
by thechen
I'd tried to link a photo in my gallery but found it was the older version. I had refreshed my local browser, but it is still served from the staled cache. I had also tried to rebuild the thumbnail, but it is still served from the staled cache. Any idea if this is a real bug? If so, is there a workaround to force the cached version to flush?

The first URL gets the updated version, but the second URL gets the staled version.

http://www.pbase.com/image/19065532
http://www.pbase.com/image/19065532.jpg

I don't think it's the cache...

PostPosted: Sun Sep 07, 2003 12:51 pm
by altofran
Hi,

First, what do you mean 'refreshed your browser'? Cleared your cache or just made a 'Refresh'? You should clear your cache files.

Secondly, since pbase generates differents thumbnails sizes, you should specify which size of your picture you'll need to link to. For example, the pictures you're trying to link to:

Original link:
http://www.pbase.com/image/19065532/original.jpg

Medium link:
http://www.pbase.com/image/19065532/medium.jpg

Otherwise, you'll have the default size, depending on your last visit to PBase.

Hope that will help.

still there and staled

PostPosted: Mon Sep 08, 2003 3:37 am
by thechen
nacef wrote:what do you mean 'refreshed your browser'? Cleared your cache or just made a 'Refresh'? You should clear your cache files.


I meant my browser didn't do a conditional get with the "if-modified-since" header but a straight HTTP GET.

Interestingly, when supplying the size as you suggested along within the URI, I get the new version again.

Apparently, when the frontend Pbase server sees my request, it redirected to this with a 302:

http://cakeli.image.pbase.com/image/19065532.jpg

I believe this is where the stale cached version is store.

nacef wrote:since pbase generates differents thumbnails sizes, you should specify which size of your picture you'll need to link to.


This is a good tip, and I will start specifying the size from now on.

PostPosted: Tue Oct 14, 2003 8:00 am
by thechen
Because no one seems to have a solution to this, I'll post my work around. It is relative simple, as all you need to do is to remove the original image and re-add it. You will lose the meta-data, and some of them like the number of hits can't be restore by you. My original problem of staled cache happens when I just update an image with the "Upload Image" feature while I "edit" an image.