]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1428146 - Fix static assets url rewriting rule
authorDylan William Hardison <dylan@hardison.net>
Mon, 8 Jan 2018 03:12:47 +0000 (22:12 -0500)
committerKohei Yoshino <kohei.yoshino@gmail.com>
Mon, 8 Jan 2018 03:12:47 +0000 (22:12 -0500)
.htaccess

index eaee185c9c2a420545089839e3b5aab1cacb252a..6a3d46913cfbe81ee8cf95698e118d5467bac47b 100644 (file)
--- a/.htaccess
+++ b/.htaccess
@@ -27,7 +27,7 @@ RewriteRule ^__version__$ version.json [L]
 # heartbeat.cgi returns 200 if the DB and memcached are both working, and 500 otherwise.
 RewriteRule ^__heartbeat__$ heartbeat.cgi [L]
 
-RewriteRule ^static/v\d{4}\d{2}\d{2}\.\d+/(.+\.(?:js|css|woff2?|png|jpe?g|gif|ico|svg)) $1 [NC,E=IMMUTABLE:1,L]
+RewriteRule ^static/v\d{4}\d{2}\d{2}\.\d+/(.+\.(?:js|css|woff2?|png|jpe?g|gif|ico|svg))$ $1 [NC,E=IMMUTABLE:1,L]
 Header set Cache-Control "public, max-age=31536000" env=REDIRECT_IMMUTABLE
 
 RewriteRule ^robots\.txt$ robots.cgi [L]