File name cache busting with Autoptimize
-
I’ve setup file name cache busting with .htaccess, but I can’t seem to get it to work in combination with Autoptimize.
As per HTML5 Boilerplate I am doing this:
<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.+)\.(\d+)\.(bmp|css|cur|gif|ico|jpe?g|js|png|svgz?|webp)$ $1.$3 [L] </IfModule>
This routes all requests such as
/style.12345.css
to/style.css
. It works well, but when Autoptimize is enabled, my CSS file shows up blank.I am aware the file generated Autoptimize handles the cache busting for you, but it would be really nice to be able to have this recommended file name cache busting working with AO so that you can just leave it in place during development and staging before activating AO. Any chance this is possible or because of how AO works is it just not an option? Thanks!!
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘File name cache busting with Autoptimize’ is closed to new replies.