0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 20:30:23 +00:00

Always add vary: accept-encoding in cowboy_compress_h

We must add it even if we don't end up compressing because
it indicates that we might. This indication doesn't mean
that the user agent's accept-encoding values will ever
result in content encoding being applied.
This commit is contained in:
Loïc Hoguin 2024-01-08 10:17:50 +01:00
parent e0adf0a19c
commit 9784179498
No known key found for this signature in database
GPG key ID: 8A9DF795F6FED764
3 changed files with 38 additions and 21 deletions

View file

@ -57,6 +57,8 @@ The compress stream handler does not produce any event.
* *2.11*: Compression is now disabled when the etag
header is in the response headers.
* *2.11*: The vary: accept-encoding header is now
always set when this handler is enabled.
* *2.6*: The options `compress_buffering` and
`compress_threshold` were added.
* *2.0*: Module introduced.