From 7754ea1c7cab26b5b40e7653f1d6cbe7d246c975 Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Wed, 20 Dec 2017 13:50:12 -0500 Subject: Bug 1361890 - Remove asset concatenation --- .htaccess | 25 ++++--------------------- 1 file changed, 4 insertions(+), 21 deletions(-) (limited to '.htaccess') diff --git a/.htaccess b/.htaccess index 06d3ac268..1a2ef3eb7 100644 --- a/.htaccess +++ b/.htaccess @@ -2,27 +2,6 @@ deny from all - - - - - ExpiresActive On - # According to RFC 2616, "1 year in the future" means "never expire". - # We change the name of the file's URL whenever its modification date - # changes, so browsers can cache any individual JS or CSS URL forever. - # However, since all JS and CSS URLs involve a ? in them (for the changing - # name) we have to explicitly set an Expires header or browsers won't - # *ever* cache them. - ExpiresDefault "now plus 1 years" - Header append Cache-Control "public" - - - # This lets Bugzilla know that we are properly sending Cache-Control - # and Expires headers for CSS and JS files. - SetEnv BZ_CACHE_CONTROL 1 - - - # Allow ZeroClipboard for access to the clipboard @@ -31,6 +10,7 @@ AddType image/x-icon .ico AddType application/font-woff .woff +AddType application/font-woff2 .woff2 Redirect permanent /queryhelp.cgi https://bugzilla.mozilla.org/query.cgi?format=advanced&help=1 Redirect permanent /bug_status.html https://bugzilla.mozilla.org/page.cgi?id=fields.html @@ -52,6 +32,9 @@ 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] +Header set Cache-Control "public, max-age=31536000" env=REDIRECT_IMMUTABLE + RewriteRule ^robots\.txt$ robots.cgi [L] # New single page interface for filing bugs -- cgit v1.2.3-24-g4f1b