diff options
author | Rich Bowen <rbowen@apache.org> | 2017-12-02 23:21:28 +0100 |
---|---|---|
committer | Rich Bowen <rbowen@apache.org> | 2017-12-02 23:21:28 +0100 |
commit | 0e284484c95f01e528c1296b5fd98fb18a0504b7 (patch) | |
tree | 0f8d6836c8ad6d5202b1290b8f81ecf2303bcfe0 /docs/manual/mod/mod_brotli.xml | |
parent | Simplifies the rewrite block for serving pre-compressed content. (diff) | |
download | apache2-0e284484c95f01e528c1296b5fd98fb18a0504b7.tar.xz apache2-0e284484c95f01e528c1296b5fd98fb18a0504b7.zip |
Remove duplication in Rewrite ruleset for pre-compressed content.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1816992 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'docs/manual/mod/mod_brotli.xml')
-rw-r--r-- | docs/manual/mod/mod_brotli.xml | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/docs/manual/mod/mod_brotli.xml b/docs/manual/mod/mod_brotli.xml index ece8b2eed7..bb6e28f5bc 100644 --- a/docs/manual/mod/mod_brotli.xml +++ b/docs/manual/mod/mod_brotli.xml @@ -142,18 +142,11 @@ content</title> <highlight language="config"> <IfModule mod_headers.c> - # Serve brotli compressed CSS files if they exist + # Serve brotli compressed CSS and JS files if they exist # and the client accepts brotli. RewriteCond "%{HTTP:Accept-encoding}" "br" RewriteCond "%{REQUEST_FILENAME}\.br" "-s" - RewriteRule "^(.*)\.css" "$1\.css\.br" [QSA] - - # Serve brotli compressed JS files if they exist - # and the client accepts brotli. - RewriteCond "%{HTTP:Accept-encoding}" "br" - RewriteCond "%{REQUEST_FILENAME}\.br" "-s" - RewriteRule "^(.*)\.js" "$1\.js\.br" [QSA] - + RewriteRule "^(.*)\.(js|css)" "$1\.$2\.br" [QSA] # Serve correct content types, and prevent double compression. RewriteRule "\.css\.br$" "-" [T=text/css,E=no-brotli:1] |