Skip to content
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

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

Merged
merged 1 commit into from
Mar 8, 2014
Merged

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

merged 1 commit into from
Mar 8, 2014

Conversation

bicpi
Copy link
Contributor

@bicpi bicpi commented Feb 22, 2014

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().

@bicpi
Copy link
Contributor Author

bicpi commented Feb 22, 2014

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
Contributor Author

bicpi commented Feb 23, 2014

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

@weaverryan
Copy link
Member

Yes, obviously much more accurate now - thanks!

weaverryan added a commit that referenced this pull request Mar 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
@weaverryan weaverryan merged commit f7ef7c0 into symfony:2.3 Mar 8, 2014
weaverryan added a commit that referenced this pull request Mar 8, 2014
I realized that the sentence on the notes was a bid hard to read. I also removed a usage of
the word "client" right before this, so I can use the word "cache" instead (meaning, I want
the 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 request Mar 19, 2014
This PR was merged into the 2.3 branch.

Discussion
----------

Http cache validation rewording

Hiya guys!

This comes after #3596.

I realized that the sentence on the notes was a bid hard to read. I also removed a usage of
the word "client" right before this, so I can use the word "cache" instead (meaning, I want
the 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 free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants