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:
parent
e0adf0a19c
commit
9784179498
3 changed files with 38 additions and 21 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue