chris c
chris c

Reputation: 331

Html changes are not updating in chrome only

So there is some kind of caching issue going on with chrome lately. I updated an image on a web page, but it will not update in chrome. Other browsers are fine. Also I'm going to note that I changed the html, and gave the image a new name to force browsers to grab the updated version. i.e image.jpg > image-v1.jpeg

How on earth does chrome not grab the updated version of this?

Anyone seen this going on lately and know of a fix. Thanks

Upvotes: 0

Views: 2651

Answers (2)

chris c
chris c

Reputation: 331

For anyone stumped on this kind of an issue, if you are using a web farm check to make sure DFS replication across the servers is working correctly. It was failing for one server in my case, this is why some users got the updated version while others didn't.

to verify if replication worked, log into the servers via RDP then check the last modified date time stamps for the file(s) in question.

Upvotes: -1

someguy
someguy

Reputation: 31

When you clear browsing data, make sure to check the box to clear cached images, also make sure the duration is set to "All time".

https://i.ibb.co/jzYk6DK/ex.png

If that doesn't work, try renaming the image.

If that also doesn't work, take a look at the web server configuration expiry headers, and check the duration for cached images in your format. It could be in .htaccess, or it could be elsewhere depending on if you're using apache2 or Nginx.

Upvotes: 1

Related Questions