From 441f11e1c33bda74c3bf54fa8d5baef735bce6a3 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Fri, 9 Aug 2024 11:37:30 -0600 Subject: [PATCH] encode: Document zstd levels --- src/docs/markdown/caddyfile/directives/encode.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/docs/markdown/caddyfile/directives/encode.md b/src/docs/markdown/caddyfile/directives/encode.md index 410bd86..f16668a 100644 --- a/src/docs/markdown/caddyfile/directives/encode.md +++ b/src/docs/markdown/caddyfile/directives/encode.md @@ -19,7 +19,7 @@ Encodes responses using the configured encoding(s). A typical use for encoding i encode [] { # encoding formats gzip [] - zstd + zstd [] minimum_length @@ -35,9 +35,9 @@ encode [] { - **<formats...>** is the list of encoding formats to enable. If multiple encodings are enabled, the encoding is chosen based the request's Accept-Encoding header; if the client has no strong preference (q-factor), then the first supported encoding is used. -- **gzip** enables Gzip compression, optionally at the specified level. +- **gzip** enables Gzip compression, optionally at a specified level. -- **zstd** enables Zstandard compression. +- **zstd** enables Zstandard compression, optionally at a specified level (possible values = default, fastest, better, best). The default compression level is roughly equivalent to the default Zstandard mode (level 3). - **minimum_length** the minimum number of bytes a response should have to be encoded (default: 512).