Magento display old images that are referenced in CSS

by Benjamin   Last Updated January 13, 2018 12:09 PM

I am keep seeing the old images that are referenced in CSS file. This image was changed more than two months ago. The only way to refresh the images is to open the store via incognito mode.

I thought it might be related to .htaccess file, however in .htaccess file it is set to expire the css file after 7 days and png image after 30 days.

ExpiresActive On
  ExpiresByType image/png "access plus 2592000 seconds"
  ExpiresByType text/css "access plus 604800 seconds"

In my CSS file I have an image path as below:

background: url(../../images/newsletter.png)

Is there a way I could refresh this from the server side, so all the clients who are browsing the store get to see the latest visuals?



Related Questions


Nice, clean URL for my store

Updated April 24, 2017 12:09 PM




Rewrite login page on /accounts URLin magento internally

Updated September 24, 2017 19:09 PM