Page MenuHomePhabricator

Bump thumbnail URL through a version query string parameter to avoid caching issue in browsers
Closed, DuplicatePublic

Description

I uploaded an updated version of an image, see https://commons.wikimedia.org/wiki/File:Kaisereicherp.jpg and the thumbnail is the same as the old image. But when I click on the image, it shows my new image.

Event Timeline

@FrankBuss I see the thumbnail of the new one, but thumbnails are sent to the browser with a "please cache this a long time" instruction. Try ctrl + shift + R (or any way in your browser to refresh a page and the resources embedded), you should then see the correct thumbnail.

You are right, looks like a cache problem on my side. I see the new one, too, in another browser.

But this should be fixed. Maybe add a version number to the image request, which is simply ignored on the server side, but then the browser loads the new image? I guess this is a problem for normal users as well, because in the wikipedia page where this image was used, the old image was there too for me. The additional version would still allow to cache it, but it would guarantee that the right image is always displayed.

Dereckson renamed this task from wrong thumbnail to Bump thumbnail URL through a version query string parameter to avoid caching issue in browsers.Aug 14 2017, 10:56 PM