christopherdarling/silverstripe-betterrequirementsversioning

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

dev-master 2016-03-01 11:38 UTC

This package is auto-updated.

Last update: 2024-03-15 15:56:12 UTC


README

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>