Mailing List Archive

[Bug 64372] New: mod_brotli example is a little bit evil (serving precompressed)
https://bz.apache.org/bugzilla/show_bug.cgi?id=64372

Bug ID: 64372
Summary: mod_brotli example is a little bit evil (serving
precompressed)
Product: Apache httpd-2
Version: 2.4.38
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P2
Component: Documentation
Assignee: docs@httpd.apache.org
Reporter: grin@grin.hu
Target Milestone: ---

https://httpd.apache.org/docs/2.4/mod/mod_brotli.html

The "Serving pre-compressed content" section caused me quite a long time to
resolve. I hope my failures are your way to make it better and easier for the
innocent newcomers.

- The example needs "RewriteEngine On". (That really hurts.)

- There are a lot of backslahes out there. Half of them is not required at all
and only confuses people.

- REQUEST_FILENAME has a good chance not to exist; it works way better to use
RewriteCond "%{LA-U:REQUEST_FILENAME}\.br" "-s"

- May be a bug, but unless I do
RewriteRule "^(.*)\.css$" "$1.css.br" [QSA,E=no-gzip:1]
all the content is double-compressed by brotli THEN gzip, and things start to
break.

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org