Earlier I have image with dimensions(675*774) and I updated the image with resolution 250*250 but still it’s showing old image.
https://shop.olamsvi.com/pub/media/catalog/category/Picture1_2.png
When I load same Image with ?<random_number>
updated image is showing with dimensions (250 * 250)
https://shop.olamsvi.com/pub/media/catalog/category/Picture1_2.png?22
I have deleted my browser cache and also checked in incognito.
Can any one tell what could be the issue.
Sorry for my bad English.
2
Answers
Please, can you see this answer?
https://stackoverflow.com/a/13029007/4553685
Maybe it will help you
Apparently there is Varnish caching HTTP reverse proxy in front of your Apache server, which is serving the cached copy of the image (because it was configured to do so).
You can observe that from HTTP response headers:
Not the
Via: 1.1 varnish (Varnish/5.2)
andExpires: Fri, 22 Mar 2019 05:53:09 GMT
lines.It is usually very beneficial to cache your static resources, but you should also think about the way how to invalidate it (and when to do it)