Skip to content
This repository has been archived by the owner on Dec 20, 2018. It is now read-only.

Compression: Vary Header not returned when content gzipped #187

Closed
spboyer opened this issue Dec 5, 2016 · 2 comments
Closed

Compression: Vary Header not returned when content gzipped #187

spboyer opened this issue Dec 5, 2016 · 2 comments

Comments

@spboyer
Copy link

spboyer commented Dec 5, 2016

Response header should contain

Vary: Accept-Encoding

when content is gzipped. IIS compression currently adds header.

@Tratcher
Copy link
Member

Tratcher commented Dec 6, 2016

There's some debate over who should be setting this. Right now the cache headers are set by the resource (e.g. the ResponseCache attribute on the MVC action).

I guess you could consider this an opt-out header and compare it to the CookieAuth middleware always opting out of all caching.

Does IIS add the Vary even for non-cacheable responses?

@spboyer
Copy link
Author

spboyer commented Dec 6, 2016

My understanding, would need confirmation from IIS team, is that if the Accept-Encoding header is sent then IIS responds with the Vary, otherwise no.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants