From: Dylan William Hardison Date: Mon, 8 Jan 2018 03:12:47 +0000 (-0500) Subject: Bug 1428146 - Fix static assets url rewriting rule X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=19e368ee6d070699e52c845c324143568f08444a;p=thirdparty%2Fbugzilla.git Bug 1428146 - Fix static assets url rewriting rule --- diff --git a/.htaccess b/.htaccess index eaee185c9..6a3d46913 100644 --- 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]