Have you ever had a client telling you he does not see the latest changes you have just deployed on his website? And you answer him to clear his browser cache? Well here is a Magento module that allows you to force static files reloading in the end-user’s browser, thanks to a variable that will be added to the HTTP request and that you can manage in admin panel.
Here is an overview of the Magento admin panel once the module is installed and enabled:
Module adds a query parameter to each call of static file (js and css) that have been merged or not.
URL will look like this:
UPDATE 2013-03-16: added auto generation feature based on last modification date (enabled by default).
Extension is available on GitHub: https://github.com/jreinke/magento-suffix-static-files
You have 2 ways to install it:
- Manual installation: download package here, unzip in Magento root folder, then clean cache.
- Installation with modgit:
modgit -e README.md clone queryfier https://github.com/jreinke/magento-suffix-static-files.git
See a full example of how to use
Whenever you change the variable value, the file will be downloaded to the user’s browser and will be updated.