christopherdarling / silverstripe-betterrequirementsversioning
Replaces the querystring ?m=timestamp versioning to include the filestamp before the file extension for better caching
Installs: 24
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 1
Forks: 2
Open Issues: 0
Type:silverstripe-module
Requires
- php: >=5.3.2
- silverstripe/cms: ~3.1
- silverstripe/framework: ~3.1
This package is auto-updated.
Last update: 2025-03-15 18:33:34 UTC
README
silverstripe-betterrequirementsversioning
Replaces the querystring ?m=timestamp versioning to include the filestamp before the file extension for better caching
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>