Magento 1.x Extension
This module appends the modified timestamp to skin URLs, to automatically bust Browser Cache on changes.
Tested with Magento 1.9.3.6
This extension can be installed using Composer
This Module just add a unix-timestamp parameter to each skin-url which uses
// skin
\Mage_Core_Model_Design_Package::getSkinUrl()
// merged css
\Mage_Core_Model_Design_Package::getMergedCssUrl()
// merged js
\Mage_Core_Model_Design_Package::getMergedJsUrl()
to get URLs like that example:
<!-- merged css -->
<link rel="stylesheet" type="text/css" href="http://my-domain.com/media/css/80155168870b61c9ca5c888e4b01857c.css?1509972745">
<!-- vendor include of jQuery -->
<script type="text/javascript" src="http://my-domain.com/skin/frontend/my-package/my-design/js/vendor/jquery.min.js?1478112303"></script>
<!-- It will append it to every url which is a file in skin folder. So it also works for images -->
<link rel="icon" href="http://my-domain.com/skin/frontend/my-package/my-design/favicon.ico?1478112292" type="image/x-icon">
By default there is no need to update .htaccess
.
enable Module
If you have any problems with this extension, please open an issue.
Any contribution is highly appreciated. The best way to contribute is to open a pull request.
Nick Dilssner [email protected]