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 "Vary: Accept" response header #718

Merged
merged 1 commit into from
Sep 1, 2016

Conversation

teohhanhui
Copy link
Contributor

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets N/A
License MIT
Doc PR N/A

We must add the "Vary: Accept" response header, since we're varying the response by "Accept" request header. Otherwise, it messes up HTTP caching (Varnish etc.).

@dunglas dunglas merged commit f2427de into api-platform:master Sep 1, 2016
@dunglas
Copy link
Member

dunglas commented Sep 1, 2016

Good catch, thanks Teoh!

@teohhanhui teohhanhui deleted the add-vary-accept-header branch September 2, 2016 08:37
magarzon pushed a commit to magarzon/core that referenced this pull request Feb 12, 2017
…eader

Add "Vary: Accept" response header
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.

None yet

2 participants