-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[HttpKernel] Improve and add tests for Last-Modified
computation with ESI responses
#58011
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] Improve and add tests for Last-Modified
computation with ESI responses
#58011
Conversation
Last-Modified
computation with ESI responses
|
||
// Embedded response uses "expiry" model |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think "expiry" refers to the maxAge
, but we're only using Last-Modified
in both reqests. Last-Modified
is, to my understanding, one possibly way of revalidation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests look good to me. I can't honestly tell why I added the Etag
to the main response, since (as you said) this should not be relevant at all.
Background: I'm currently investigating a bug where ESI responses miss content. It might be that the change from #42355 – which I think is correct in itself 👍 – creates the condition where the bug appears.
Sounds like HttpCache
returns a 304
response without content (which is according to specs), while trying to merge ESI fragments into the main response 🤔
Last-Modified
computation with ESI responsesLast-Modified
computation with ESI responses
See #58015. |
Last-Modified
computation with ESI responsesLast-Modified
computation with ESI responses
Thank you @mpdude. |
This PR slightly improves the test cases for #42355 (which fixed #41666).
It adds two tests for the cases where
Last-Modified
should not be added,and updates the existing test to make it more obvious that we only look at
the existence of
Last-Modified
headers, whereas theETag
is notrelevant.