MarceI
3/1/2011 - 3:43 PM

Apache mod_rewrite rules so that "image.png" or "all.css" can be referenced as "image.20110202.png" or "all.whatever.css" to effectively cac

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

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)\.(\d+)\.(js|css|png|jpg|gif)$ $1.$3 [L]