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

Keep s-maxage when expiry and validation are used in combination#23130

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
fabpot merged 1 commit intosymfony:2.7fromwebfactory:expiry-wins-over-validation-so-cache-it
Jun 14, 2017
Merged

Keep s-maxage when expiry and validation are used in combination#23130

fabpot merged 1 commit intosymfony:2.7fromwebfactory:expiry-wins-over-validation-so-cache-it
Jun 14, 2017

Conversation

@mpdude
Copy link
Contributor

@mpdudempdude commentedJun 10, 2017
edited
Loading

QA
Branch?2.7
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets
LicenseMIT
Doc PR

(Symfony) docs say thatexpiration wins over validation. So,

a) when both the master and embedded response are public with an s-maxage, the result should be public as well and use the lower s-maxage of both,also in the case that the embedded response carries validation headers. (The cache may use those for revalidating the embedded response once it has become stale, but that does not impact expiration-based caching of the combined response.)

b) when both the master and embedded response are public with an s-maxage, the result should be public as well and use the lower s-maxage of both,also in the case that the master response carries validation headers. However, thosemust not be passed on to the client: They do not apply to the combined response, but may only be used by the cache itself to revalidate the (raw) master response.

@mpdudempdude changed the titleKeep s-maxage when embedded response uses both expiry and validationKeep s-maxage when expiry and validation are used in combinationJun 10, 2017
@xabbuhxabbuh added this to the2.7 milestoneJun 12, 2017
@mpdude
Copy link
ContributorAuthor

@fabpot Rebased to resolve conflicts after#23123 merge

@fabpot
Copy link
Member

Should be rebased now :)

…ould not defeat expiration on the combined response
@mpdude
Copy link
ContributorAuthor

Note to self: Don't open three different PRs at once that change the same part of code, will save yourself a lot of work.

@mpdude
Copy link
ContributorAuthor

@fabpot rebased

@fabpot
Copy link
Member

@mpdude Actually, that would have saved a lot of work for me as well :) At first, I didn't realized that the 3 PRs were about the same topic. In such a case, I generally ask to merge them all into one PR.

@mpdude
Copy link
ContributorAuthor

I was unsure as to whether you agree that all three are bugs or correct behavior.

@fabpot
Copy link
Member

Thank you@mpdude.

@fabpotfabpot merged commit09bcbc7 intosymfony:2.7Jun 14, 2017
fabpot added a commit that referenced this pull requestJun 14, 2017
…nation (mpdude)This PR was merged into the 2.7 branch.Discussion----------Keep s-maxage when expiry and validation are used in combination| Q             | A| ------------- | ---| Branch?       | 2.7| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets || License       | MIT| Doc PR        |(Symfony) docs say that [expiration wins over validation](https://symfony.com/doc/current/http_cache/validation.html). So,a) when both the master and embedded response are public with an s-maxage, the result should be public as well and use the lower s-maxage of both, *also* in the case that the embedded response carries validation headers. (The cache may use those for revalidating the embedded response once it has become stale, but that does not impact expiration-based caching of the combined response.)b) when both the master and embedded response are public with an s-maxage, the result should be public as well and use the lower s-maxage of both, *also* in the case that the master response carries validation headers. However, those *must not* be passed on to the client: They do not apply to the combined response, but may only be used by the cache itself to revalidate the (raw) master response.Commits-------09bcbc7 Embedding a response that combines expiration and validation, that should not defeat expiration on the combined response
@mpdudempdude deleted the expiry-wins-over-validation-so-cache-it branchJune 14, 2017 22:32
@mpdude
Copy link
ContributorAuthor

@fabot Could you do me a favor and merge at least 2.7 into 2.8, if your processes allow it and it is no big deal?

@fabpot
Copy link
Member

@mpdude Done!

mpdude reacted with heart emoji

This was referencedJul 3, 2017
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

2.7

Development

Successfully merging this pull request may close these issues.

4 participants

@mpdude@fabpot@xabbuh@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp