Skip to content

Latest commit

 

History

History
5 lines (3 loc) · 432 Bytes

File metadata and controls

5 lines (3 loc) · 432 Bytes

Response compression always emits Vary: Accept-Encoding

The response-compression middleware now adds Vary: Accept-Encoding to every response when compression is enabled, even when the response itself isn't compressed. This prevents shared caches and CDNs from serving a compressed payload to a client that didn't ask for one (or vice versa).

Thank you @pedrobsaila for this contribution!