Only match the intended extensions
authorTom Hughes <tom@compton.nu>
Tue, 18 Jun 2019 11:01:19 +0000 (12:01 +0100)
committerTom Hughes <tom@compton.nu>
Tue, 18 Jun 2019 11:01:19 +0000 (12:01 +0100)
cookbooks/web/templates/default/apache.frontend.erb

index 1f53272..5197ebb 100644 (file)
 
   RewriteCond "%{HTTP:Accept-encoding}" "gzip"
   RewriteCond "%{REQUEST_FILENAME}\.gz" -s
-  RewriteRule "^(.*)\.(css|js|svg)" "$1\.$2\.gz" [QSA]
+  RewriteRule "^(.*)\.(css|js|svg)$" "$1\.$2\.gz" [QSA]
 
   RewriteRule "\.css\.gz$" "-" [T=text/css,E=no-gzip:1]
   RewriteRule "\.js\.gz$"  "-" [T=text/javascript,E=no-gzip:1]