Board index PBase Questions and Answers staled cache

Questions and Answers

staled cache

Ask if you need help using PBase.
thechen
 
Posts: 15

staled cache

Post Sun Sep 07, 2003 9:35 am


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

altofran
 
Posts: 144

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

Post Sun Sep 07, 2003 12:51 pm


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.

thechen
 
Posts: 15

still there and staled

Post Mon Sep 08, 2003 3:37 am


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.
Last edited by thechen on Tue Oct 14, 2003 8:01 am, edited 1 time in total.

thechen
 
Posts: 15


Post Tue Oct 14, 2003 8:00 am


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.


Board index PBase Questions and Answers staled cache

Who is online

Users browsing this forum: ClaudeBot and 2 guests