From: Rich Bowen Date: Tue, 19 May 2026 14:04:26 +0000 (+0000) Subject: Adds missing default value for BrotliFilterNote, and fixes a trivial typo. X-Git-Tag: 2.4.68-rc1-candidate~114 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1ac0b5eca1723f8f33bc5e0bdc6ebc60cf59aff3;p=thirdparty%2Fapache%2Fhttpd.git Adds missing default value for BrotliFilterNote, and fixes a trivial typo. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1934397 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_brotli.xml b/docs/manual/mod/mod_brotli.xml index b393ba3eac..575ca84c41 100644 --- a/docs/manual/mod/mod_brotli.xml +++ b/docs/manual/mod/mod_brotli.xml @@ -75,7 +75,7 @@ SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-brotli

If you want to restrict the compression to particular MIME types in general, you may use the AddOutputFilterByType directive. Here is an example of - enabling compression only for the html files of the Apache + enabling compression only for the html files of the httpd documentation:

@@ -104,14 +104,14 @@ SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-brotli

The mod_brotli module sends a Vary: Accept-Encoding HTTP response header to alert proxies that a cached response should be sent only to clients that send the - appropriate Accept-Encoding request header. This + appropriate Accept-Encoding request header. This prevents compressed content from being sent to a client that will not understand it.

If you use some special exclusions dependent on, for example, the User-Agent header, you must manually configure an addition to the Vary header - to alert proxies of the additional restrictions. For example, + to alert proxies of the additional restrictions. For example, in a typical configuration where the addition of the BROTLI_COMPRESS filter depends on the User-Agent, you should add:

@@ -176,6 +176,7 @@ content BrotliFilterNote Places the compression ratio in a note for logging BrotliFilterNote [type] notename +None server configvirtual host @@ -286,7 +287,7 @@ CustomLog "logs/brotli_log" brotli

The BrotliAlterETag directive specifies - how the ETag hader should be altered when a response is compressed.

+ how the ETag header should be altered when a response is compressed.

AddSuffix

Append the compression method onto the end of the ETag, causing @@ -303,7 +304,7 @@ CustomLog "logs/brotli_log" brotli

Remove

Remove the ETag header from compressed responses. This prevents some conditional requests from being possible, but avoids the - shortcomings of the preceding options.

+ shortcomings of the preceding options.