Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[HttpKernel] Dont store response cookies with HttpCache#24190
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
ro0NL commentedSep 13, 2017 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
TBH im just as scared of the opposite behavior really :) im not too familiar with HttpCache, so dont merge blindly. Status: Needs work |
nicolas-grekas commentedSep 15, 2017
How does Varnish behave here? What does the HTTP spec say about cookies? |
ro0NL commentedSep 15, 2017
Fromhttps://varnish-cache.org/docs/5.1/users-guide/increasing-your-hitrate.html#cookies
Also thinkhttps://github.com/symfony/symfony/blob/master/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php#L562 implies to preserve actually. Goal of this PR is to add a test in 3.3 for this :) |
ro0NL commentedSep 25, 2017 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Closing for now. Side effect is real; yet current behavior is the one expected IMHO. Tend to believe there be'd more issues if it was really bad :) |
Uh oh!
There was an error while loading.Please reload this page.
Before#20569 response cookies, created using theobject API, were not preserved in
ResponseHeaderBag::all(), thus not stored withHttpCache. Yet, cookies created with the string API did.That difference is now eliminated, but because of it we now always include all cookies 😅 Causing side effects here (mentioned on slack today). Sorry, i did not anticipatedthat.
I think the preferred behavior is to not store any cookies, as i tend to believe object api is used a lot more.
So this is a hotfix, whereas 3.4 might further discuss features about cookie policy.
Reporter notified, lets wait for confirmation a bit. But i think this should do.