httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kot...@apache.org
Subject svn commit: r1790871 - /httpd/httpd/trunk/docs/manual/mod/mod_brotli.xml
Date Mon, 10 Apr 2017 16:08:43 GMT
Author: kotkov
Date: Mon Apr 10 16:08:42 2017
New Revision: 1790871

URL: http://svn.apache.org/viewvc?rev=1790871&view=rev
Log:
mod_brotli: Fix leftovers from mod_deflate or incorrect directives in
the "Serving pre-compressed content" section of the docs.

Generally speaking, this section would benefit from a rewrite pointing
out how to configure a mod_deflate + mod_brotli configuration with
precompressed contents, but for now at least fix the mistakes in the
configuration.

Modified:
    httpd/httpd/trunk/docs/manual/mod/mod_brotli.xml

Modified: httpd/httpd/trunk/docs/manual/mod/mod_brotli.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/mod_brotli.xml?rev=1790871&r1=1790870&r2=1790871&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/mod/mod_brotli.xml (original)
+++ httpd/httpd/trunk/docs/manual/mod/mod_brotli.xml Mon Apr 10 16:08:42 2017
@@ -143,25 +143,25 @@ content</title>
 &lt;IfModule mod_headers.c&gt;
     # Serve brotli compressed CSS files if they exist
     # and the client accepts brotli.
-    RewriteCond "%{HTTP:Accept-encoding}" "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}" "brotli"
+    RewriteCond "%{HTTP:Accept-encoding}" "br"
     RewriteCond "%{REQUEST_FILENAME}\.br" "-s"
     RewriteRule "^(.*)\.js"               "$1\.js\.br" [QSA]
 
 
-    # Serve correct content types, and prevent mod_brotli double brotli.
-    RewriteRule "\.css\.gz$" "-" [T=text/css,E=no-brotli:1]
-    RewriteRule "\.js\.gz$"  "-" [T=text/javascript,E=no-brotli:1]
+    # Serve correct content types, and prevent double compression.
+    RewriteRule "\.css\.br$" "-" [T=text/css,E=no-brotli:1]
+    RewriteRule "\.js\.br$"  "-" [T=text/javascript,E=no-brotli:1]
 
 
-    &lt;FilesMatch "(\.js\.gz|\.css\.gz)$"&gt;
+    &lt;FilesMatch "(\.js\.br|\.css\.br)$"&gt;
       # Serve correct encoding type.
-      Header append Content-Encoding brotli
+      Header append Content-Encoding br
 
       # Force proxies to cache brotli &amp;
       # non-brotli css/js files separately.



Mime
View raw message