[HttpKernel] Dont store response cookies with HttpCache #24190
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Before #20569 response cookies, created using the object 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 anticipated that.
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.