Lots of minor adjustments

This commit is contained in:
Francis Lavoie 2023-08-20 04:16:11 -04:00
parent c6a6daf3f9
commit 43b3329375
No known key found for this signature in database
GPG key ID: 0F66EE1687682239
18 changed files with 146 additions and 284 deletions

View file

@ -34,9 +34,13 @@ encode [<matcher>] <formats...> {
```
- **&lt;formats...&gt;** 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** <span id="gzip"/> enables Gzip compression, optionally at the specified level.
- **zstd** <span id="zstd"/> enables Zstandard compression.
- **minimum_length** <span id="minimum_length"/> the minimum number of bytes a response should have to be encoded (default: 512).
- **match** <span id="match"/> is a [response matcher](#response-matcher). Only matching responses are encoded. The default looks like this:
```caddy-d