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

Fix two edge cases in ResponseCacheStrategy#23129

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

Closed
mpdude wants to merge2 commits intosymfony:2.7fromwebfactory:fix-handling-noncacheable-embedded-response
Closed

Fix two edge cases in ResponseCacheStrategy#23129

mpdude wants to merge2 commits intosymfony:2.7fromwebfactory:fix-handling-noncacheable-embedded-response

Conversation

@mpdude
Copy link
Contributor

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

While reviewing howResponseCacheStrategy calculates the caching-related headers for responses that embed subrequests, I came across two cases that I think are currently implemented incorrectly.

a) When the main response is public and cacheable with an expiration time, but it embeds (via ESI) a controller that does not set any caching-related headers, this embedded response is more constrained. So, the resulting (combined) response must not be cacheable, especially it may not keep the s-maxage.

b) When the main response is public and cacheable with an expiration time, but it embeds (via ESI) a controller that explicitly creates a "private" response, the resulting (combined) response must be private as well.

@mpdude
Copy link
ContributorAuthor

Rebased to resolve conflicts after#23123 merged into 2.7

@fabpot
Copy link
Member

Thank you@mpdude.

fabpot added a commit that referenced this pull requestJun 14, 2017
This PR was squashed before being merged into the 2.7 branch (closes#23129).Discussion----------Fix two edge cases in ResponseCacheStrategy| 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        |While reviewing how `ResponseCacheStrategy` calculates the caching-related headers for responses that embed subrequests, I came across two cases that I think are currently implemented incorrectly.a) When the main response is public and cacheable with an expiration time, but it embeds (via ESI) a controller that does not set any caching-related headers, this embedded response is more constrained. So, the resulting (combined) response must not be cacheable, especially it may not keep the s-maxage.b) When the main response is public and cacheable with an expiration time, but it embeds (via ESI) a controller that explicitly creates a "private" response, the resulting (combined) response must be private as well.Commits-------c6e8c07 Fix two edge cases in ResponseCacheStrategy
@fabpotfabpot closed thisJun 14, 2017
@mpdudempdude deleted the fix-handling-noncacheable-embedded-response branchJune 14, 2017 21:39
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