diff options
author | Dylan William Hardison <dylan@hardison.net> | 2017-12-20 19:50:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-20 19:50:12 +0100 |
commit | 7754ea1c7cab26b5b40e7653f1d6cbe7d246c975 (patch) | |
tree | ed39b1672e477e22ca5f5a3c8afd075e29c25750 /.htaccess | |
parent | d87c64e5805adb4bae54b10d517c10463a9251fc (diff) | |
download | bugzilla-7754ea1c7cab26b5b40e7653f1d6cbe7d246c975.tar.gz bugzilla-7754ea1c7cab26b5b40e7653f1d6cbe7d246c975.tar.xz |
Bug 1361890 - Remove asset concatenation
Diffstat (limited to '.htaccess')
-rw-r--r-- | .htaccess | 25 |
1 files changed, 4 insertions, 21 deletions
@@ -2,27 +2,6 @@ <FilesMatch (\.pm|\.pl|\.tmpl|\.swf|localconfig.*|cpanfile)$> deny from all </FilesMatch> -<IfModule mod_expires.c> -<IfModule mod_headers.c> -<IfModule mod_env.c> - <FilesMatch (\.js|\.css)$> - 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" - </FilesMatch> - - # This lets Bugzilla know that we are properly sending Cache-Control - # and Expires headers for CSS and JS files. - SetEnv BZ_CACHE_CONTROL 1 -</IfModule> -</IfModule> -</IfModule> # Allow ZeroClipboard for access to the clipboard <Files "ZeroClipboard.swf"> @@ -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 |