You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rb...@apache.org on 2026/03/18 16:27:44 UTC
svn commit: r1932367 - httpd/httpd/trunk/docs/manual/mod
Author: rbowen
Date: Wed Mar 18 16:27:43 2026
New Revision: 1932367
Log:
bz64372 Fixes mod_brotli compressed file example syntax.
Modified:
httpd/httpd/trunk/docs/manual/mod/mod_brotli.html.en.utf8
httpd/httpd/trunk/docs/manual/mod/mod_brotli.xml
Modified: httpd/httpd/trunk/docs/manual/mod/mod_brotli.html.en.utf8
==============================================================================
--- httpd/httpd/trunk/docs/manual/mod/mod_brotli.html.en.utf8 Wed Mar 18 16:26:15 2026 (r1932366)
+++ httpd/httpd/trunk/docs/manual/mod/mod_brotli.html.en.utf8 Wed Mar 18 16:27:43 2026 (r1932367)
@@ -159,14 +159,14 @@ content</a> <a title="Permanent link" hr
<pre class="prettyprint lang-config"><IfModule mod_headers.c>
# Serve brotli compressed CSS and JS files if they exist
# and the client accepts brotli.
+ RewriteEngine On
RewriteCond "%{HTTP:Accept-encoding}" "br"
- RewriteCond "%{REQUEST_FILENAME}\.br" "-s"
- RewriteRule "^(.*)\.(js|css)" "$1\.$2\.br" [QSA]
+ RewriteCond "%{LA-U:REQUEST_FILENAME}.br" "-s"
+ 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]
- RewriteRule "\.js\.br$" "-" [T=text/javascript,E=no-brotli:1]
-
+ RewriteRule "\.css\.br$" "-" [T=text/css,E=no-brotli:1,E=no-gzip:1]
+ RewriteRule "\.js\.br$" "-" [T=text/javascript,E=no-brotli:1,E=no-gzip:1]
<FilesMatch "(\.js\.br|\.css\.br)$">
# Serve correct encoding type.
Modified: httpd/httpd/trunk/docs/manual/mod/mod_brotli.xml
==============================================================================
--- httpd/httpd/trunk/docs/manual/mod/mod_brotli.xml Wed Mar 18 16:26:15 2026 (r1932366)
+++ httpd/httpd/trunk/docs/manual/mod/mod_brotli.xml Wed Mar 18 16:27:43 2026 (r1932367)
@@ -144,14 +144,14 @@ content</title>
<IfModule mod_headers.c>
# Serve brotli compressed CSS and JS files if they exist
# and the client accepts brotli.
+ RewriteEngine On
RewriteCond "%{HTTP:Accept-encoding}" "br"
- RewriteCond "%{REQUEST_FILENAME}\.br" "-s"
- RewriteRule "^(.*)\.(js|css)" "$1\.$2\.br" [QSA]
+ RewriteCond "%{LA-U:REQUEST_FILENAME}.br" "-s"
+ 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]
- RewriteRule "\.js\.br$" "-" [T=text/javascript,E=no-brotli:1]
-
+ RewriteRule "\.css\.br$" "-" [T=text/css,E=no-brotli:1,E=no-gzip:1]
+ RewriteRule "\.js\.br$" "-" [T=text/javascript,E=no-brotli:1,E=no-gzip:1]
<FilesMatch "(\.js\.br|\.css\.br)$">
# Serve correct encoding type.