Forum Moderators: open

Message Too Old, No Replies

Image caching problem

Image changed on server, but visitors get the old image

         

ShawnR

12:57 pm on Jul 31, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi All

I am after some help from you kind folk...

I have made a change to a site, including changes to an image. All looks good to me, from a number of browsers and through a number of ISPs.

However, some visitors have complained that the site isn't viewable, as an image obscures some text. On further investigation, it turns out the visitors are seeing an old (larger) version of the image. i.e. Their browser downloaded the newer version of the html page, but not the newer version of the image.

I am not sure if this is an issue of the browser of the visitors caching, or the visitors' ISPs caching. Either way, is there any way to force the cache to refresh from the website?

I note that this topic has been covered somewhat here: [webmasterworld.com...] However, I'd be keen to find a purely html way, rather than php.

Thanks

Span

1:28 pm on Jul 31, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Maybe the only 'purely html' way is to change the name of the image.

encyclo

3:29 pm on Jul 31, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Are you defining the height and width attributes on the image tag, Shawn? That should mean that even if the user gets the old image from the cache, it should be resized according to the specified dimensions in the HTML.

Other than that, I agree that the surest way is to leave the original image intact and upload a new image with a new filename each time (I just add a number after so I can see which is the latest).

ShawnR

10:07 pm on Jul 31, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks for both suggestions. No, I had not specified the image size. Also, I will change the filename.