keat Posted November 28, 2016 Share Posted November 28, 2016 We had a promotion this weekend (black friday), so I added an image to the front page. After a few hours, I changed the image, yet some people are telling me that they can still see the old image. I suspect that their browser cache has held the earler images. Is there anything I can put in place to force a browser cache clear so they see the changes ? Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted November 28, 2016 Share Posted November 28, 2016 Changing the name of the logo file is probably the easiest way to fix this. If the name has changed the browser won't have cached it and as a result it should request the new content. Quote Link to comment Share on other sites More sharing options...
keat Posted November 28, 2016 Author Share Posted November 28, 2016 Thanks.. I'll see if this fixes it. Quote Link to comment Share on other sites More sharing options...
bsmither Posted November 28, 2016 Share Posted November 28, 2016 If the image on the front page is something other than the store's logo, but rather a spurious image in the HomePage document content, then changing the name is the correct solution. But if the situation requires that the image really should be named something specific (for whatever reason), and the image itself changes, then in the HTML of the document for the <img> tag of that image, put a question mark after the filename. The "?" starts a querystring and thus forces the browser to ignore what may be already in its internal cache, always fetching a fresh copy of the page resource (the image). Quote Link to comment Share on other sites More sharing options...
keat Posted November 28, 2016 Author Share Posted November 28, 2016 We had a banner saying Black Friday 15% off, the image was called 'bf.jpg' We then decided to extend this to the whole weekend, so I created a new image, but for ease called it 'bf.jpg' and just uploaded it over the top, not thinking that browsers might cache the page. The event has now finished.. it does appear that simply renaming the logo file has forced a cache update. (from what I can see at my end) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.