-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
[HttpKernel] Handle an array vary header in the http cache store for write #61518
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
[HttpKernel] Handle an array vary header in the http cache store for write #61518
Conversation
Hey! I see that this is your first PR. That is great! Welcome! Symfony has a contribution guide which I suggest you to read. In short:
Review the GitHub status checks of your pull request and try to solve the reported issues. If some tests are failing, try to see if they are failing because of this change. When two Symfony core team members approve this change, it will be merged and you will become an official Symfony contributor! I am going to sit back now and wait for the reviews. Cheers! Carsonbot |
After some research, the 'best' practice is to send only one raw with all value comma separated. But I found that Symfony handle some values of Vary by default. Should I also open a PR to send only one row ? |
c48e839
to
d3d1637
Compare
b34ea1c
to
579e1a9
Compare
579e1a9
to
fc7da90
Compare
fc7da90
to
694cc85
Compare
Should I remove this part
that break the CI ? |
That's a false-positive, it should be ignored. Thanks for the follow up, I'll have a look ASAP. |
I think we can remove the check part on headers.
< HTTP/1.1 200 OK
< HTTP/1.1 200 OK
< HTTP/1.1 200 OK
|
Please update the patch as you see fit, I prefer reviewing patches :) |
dfd8050
to
c818606
Compare
Thank you @philpichet. |
Thanks you for the review |
We can have multiple vary on a response :
But if we make several calls with different value for the header
Foo
, we don't check them and remove the previous responses.This fix has the purpose to check all values to keep previous call
Releated to #14635