https://github.com/outeredge/magento-module-cachebuster
Magento CacheBuster Module by outer/edge
https://github.com/outeredge/magento-module-cachebuster
Last synced: over 1 year ago
JSON representation
Magento CacheBuster Module by outer/edge
- Host: GitHub
- URL: https://github.com/outeredge/magento-module-cachebuster
- Owner: outeredge
- License: mit
- Created: 2016-05-09T12:34:53.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2017-05-17T10:23:06.000Z (about 9 years ago)
- Last Synced: 2025-01-24T08:43:22.891Z (over 1 year ago)
- Language: PHP
- Size: 7.81 KB
- Stars: 0
- Watchers: 8
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# magento-module-cachebuster
Adds md5 hash to assets for cachebusting post-deployment.
## mod_rewrite configuration
Add the following rewrite rule to your .htaccess file
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)\.([0-9a-f]{32})\.(.+)$ $1.$3 [L]
## nginx configuration
Add the following into your server block
location ~ "(.+)\.([0-9a-f]{32})\.(.+)$" {
expires max;
try_files $uri $1.$3 =404;
}