silverstripe-module silverstripe-betterrequirementsversioning
Replaces the querystring ?m=timestamp versioning to include the filestamp before the file extension for better caching
christopherdarling/silverstripe-betterrequirementsversioning
Replaces the querystring ?m=timestamp versioning to include the filestamp before the file extension for better caching
- Tuesday, March 1, 2016
- by christopherdarling
- Repository
- 1 Watchers
- 3 Stars
- 18 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 2 Forks
- 0 Open issues
- 1 Versions
- 0 % Grown
, (*1)
silverstripe-betterrequirementsversioning
Replaces the querystring ?m=timestamp versioning to include the filestamp before the file extension for better caching, (*2)
Installation
- Install the module as usual.
- Add the following code to your .htaccess
<IfModule mod_rewrite.c>
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.+)\.(\d+)\.(js|css|png|jpg|gif)$ $1.$3 [L]
</IfModule>
dev-master
9999999-dev
http://www.christopherdarling.co.uk
Replaces the querystring ?m=timestamp versioning to include the filestamp before the file extension for better caching
Sources
Download
MIT
The Requires
framework
silverstripe
requirements
revving