Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting Vary header although caching is disabled #151

Closed
nolimitdev opened this issue Jan 23, 2019 · 1 comment
Closed

Setting Vary header although caching is disabled #151

nolimitdev opened this issue Jan 23, 2019 · 1 comment

Comments

@nolimitdev
Copy link

nolimitdev commented Jan 23, 2019

I think that setting "Vary" header is useless and misleading when cache control is totally disabled by "no-cache" directive in "Cache-Control" header. Is it possible to remove it in this case? This module sets by default "Vary: Accept-Encoding".

@dougwilson
Copy link
Contributor

The Vary header is set when this module makes a decision about the response by looking at the Accept-Encoding header.

Vary is not for use exclusive for caching and it's value is a generic signal. You can read more in the specification for the header: https://tools.ietf.org/html/rfc7231#section-7.1.4

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

No branches or pull requests

2 participants