Skip to content

Check multiple Vary headers when existing #32

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

Merged
merged 2 commits into from
Mar 13, 2025

Conversation

barryvdh
Copy link
Member

@barryvdh barryvdh commented Mar 13, 2025

When multiple Vary headers are set (which is acceptable in HTTP headers), the ->get('Vary') header only returns the first one. When replacing the headers, this will remove the existing headers.

This checks for all the Vary headers and appends them as a new header when there are > 1 already existing. Otherwise behavior is kept.

@barryvdh barryvdh merged commit cca409b into master Mar 13, 2025
72 checks passed
@barryvdh barryvdh deleted the feat-multiple-vary-headers branch March 13, 2025 13:08
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.

1 participant