Doc middleware compress content type
This commit is contained in:
parent
7c7ca7ef2b
commit
e5c6b0d4ea
2 changed files with 6 additions and 0 deletions
|
@ -64,6 +64,9 @@ http:
|
|||
* The `Accept-Encoding` request header contains `gzip`.
|
||||
* The response is not already compressed, i.e. the `Content-Encoding` response header is not already set.
|
||||
|
||||
If Content-Type header is not defined, or empty, the compress middleware will automatically [detect](https://mimesniff.spec.whatwg.org/) a content type.
|
||||
It will also set accordingly the `Content-Type` header with the detected MIME type.
|
||||
|
||||
## Configuration Options
|
||||
|
||||
### `excludedContentTypes`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue