Skip to content

Replaces the querystring ?m=timestamp versioning to include the filestamp before the file extension for better caching

License

Notifications You must be signed in to change notification settings

christopherdarling/silverstripe-betterrequirementsversioning

Repository files navigation

Scrutinizer Code Quality Build Status

silverstripe-betterrequirementsversioning

Replaces the querystring ?m=timestamp versioning to include the filestamp before the file extension for better caching

Installation

  1. Install the module as usual.
  2. 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>

About

Replaces the querystring ?m=timestamp versioning to include the filestamp before the file extension for better caching

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages