Created
March 1, 2011 15:43
-
-
Save marceltt/849310 to your computer and use it in GitHub Desktop.
Apache mod_rewrite rules so that "image.png" or "all.css" can be referenced as "image.20110202.png" or "all.whatever.css" to effectively cache-bust. Should be used as the first block of mod_rewrite rules. /via http://wiki.typo3.org/TYPO3_4.4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule ^(.+)\.(\d+)\.(js|css|png|jpg|gif)$ $1.$3 [L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment