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

Add Origin to Vary header #15

Merged
merged 1 commit into from
Jun 3, 2020
Merged

Add Origin to Vary header #15

merged 1 commit into from
Jun 3, 2020

Conversation

joehoyle
Copy link
Member

@joehoyle joehoyle commented Jun 3, 2020

Often the response (mainly the access-control-allow-origin header) can vary depending on the value of the Origin HTTP header. We need to provide user-agents with this hint, so they don't use a cached response for requests with different Origin headers.

Often the response (mainly the `access-control-allow-origin` header) can vary depending on the value of the `Origin` HTTP header. We need to provide user-agents with this hint, so they don't use a cached response for requests with different Origin headers.
@joehoyle joehoyle requested a review from rmccue June 3, 2020 12:49
Copy link

@hm-linter hm-linter bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Linting failed (372 errors).

(370 notices occurred in your codebase, but were on files/lines not included in this PR.)

@rmccue
Copy link
Member

rmccue commented Jun 3, 2020

Often the response (mainly the access-control-allow-origin header) can vary depending on the value of the Origin HTTP header

Well, moreover, we include it in the cache key by default, so it's our responsibility to set this.

@joehoyle joehoyle merged commit 1f3f231 into master Jun 3, 2020
@joehoyle joehoyle deleted the vary-origin branch June 3, 2020 13:38
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

Successfully merging this pull request may close these issues.

2 participants