Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[HTTP Cache] Validation model: Fix header name#3596

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

Merged
weaverryan merged 1 commit intosymfony:2.3frombicpi:fix_cache_validation_header_name
Mar 8, 2014
Merged

[HTTP Cache] Validation model: Fix header name#3596

weaverryan merged 1 commit intosymfony:2.3frombicpi:fix_cache_validation_header_name
Mar 8, 2014

Conversation

bicpi
Copy link
Contributor

QA
Doc fix?yes
New docs?no
Applies toall
Fixed tickets-

In the cache validation model, the response sends anETag header, but the following requests send anIf-None-Match header. So theIf-None-Match header from the request is compared to theETag from the previous response. SeeSymfony\Component\HttpFoundation\Request::getETags() which is used bySymfony\Component\HttpFoundation\Response::isNotModified().

@bicpi
Copy link
ContributorAuthor

For the expiration model, there's a note below the code, I may add a similiar one for the validation model?

The If-Modified-Since request header equals the Last-Modified header of the last response sent to the client for the particular resource. This is how the client and server communicate with each other and decide whether or not the resource has been updated since it was cached.

@bicpi
Copy link
ContributorAuthor

I've added the above mentioned tip for the validation model, i.e. the equivalent tip that is used for the expiration modelin the next section.

@weaverryan
Copy link
Member

Yes, obviously much more accurate now - thanks!

weaverryan added a commit that referenced this pull requestMar 8, 2014
This PR was merged into the 2.3 branch.Discussion----------[HTTP Cache] Validation model: Fix header name| Q             | A| ------------- | ---| Doc fix?      | yes| New docs?     | no| Applies to    | all| Fixed tickets | -In the cache validation model, the response sends an `ETag` header, but the following requests send an `If-None-Match` header. So the `If-None-Match` header from the request is compared to the `ETag` from the previous response. See `Symfony\Component\HttpFoundation\Request::getETags()` which is used by `Symfony\Component\HttpFoundation\Response::isNotModified()`.Commits-------f7ef7c0 [HTTP Cache] Validation model: Fix header name
@weaverryanweaverryan merged commitf7ef7c0 intosymfony:2.3Mar 8, 2014
weaverryan added a commit that referenced this pull requestMar 8, 2014
I realized that the sentence on the notes was a bid hard to read. I also removed a usage ofthe word "client" right before this, so I can use the word "cache" instead (meaning, I wantthe user to be thinking about the reverse proxy, not a user's browser cache - that's valid,but not the typical use-case).
weaverryan added a commit that referenced this pull requestMar 19, 2014
This PR was merged into the 2.3 branch.Discussion----------Http cache validation rewordingHiya guys!This comes after#3596.I realized that the sentence on the notes was a bid hard to read. I also removed a usage ofthe word "client" right before this, so I can use the word "cache" instead (meaning, I wantthe user to be thinking about the reverse proxy, not a user's browser cache - that's valid,but not the typical use-case).| Q             | A| ------------- | ---| Doc fix?      | yes| New docs?     | no| Applies to    | all| Fixed tickets | -Thanks!Commits-------a7cdfe9 [#3596] Tweaking language on HTTP cache
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@bicpi@weaverryan

[8]ページ先頭

©2009-2025 Movatter.jp