docs: Remove brotli from encode page (#40)

This commit is contained in:
Francis Lavoie 2020-05-15 10:01:42 -04:00 committed by GitHub
parent 5195d0c6f6
commit 00c3d67077
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,14 +12,12 @@ Encodes responses using the configured encoding(s). A typical use for encoding i
encode [<matcher>] <formats...> { encode [<matcher>] <formats...> {
gzip [<level>] gzip [<level>]
zstd zstd
brotli [<quality>]
} }
``` ```
- **&lt;formats...&gt;** is the list of encoding formats to enable. - **&lt;formats...&gt;** is the list of encoding formats to enable.
- **gzip** enables Gzip compression, optionally at the specified level. - **gzip** enables Gzip compression, optionally at the specified level.
- **zstd** enables Zstandard compression. - **zstd** enables Zstandard compression.
- **brotli** enables on-the-fly Brotli compression, but be aware that Brotli compression is not designed to be fast and the current Go implementation is not efficient. Use only for testing and development. _We might remove this option in the future. Do not use in production. Not subject to compatibility promises._ To use brotli compression, pre-compress your assets and serve those instead.
## Examples ## Examples