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

Response headers fix#19143

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:masterfromfabpot:response-headers-fix
Jun 23, 2016
Merged

Conversation

@fabpot
Copy link
Member

QA
Branch?master
Bug fix?yes
New feature?no
BC breaks?yes/no
Deprecations?no
Tests pass?yes
Fixed tickets#16171,#16307
LicenseMIT
Doc PRn/a

To fix the inconsistency mentioned in#16171, I think the "best" solution would be to addprivate when cache-control is not set, which was the intention but was forgotten.

I propose to make the fix in 3.2 only as it might be a BC break.

GromNaN and neclimdul reacted with thumbs up emoji
{
if (!$this->cacheControl && !$this->has('ETag') && !$this->has('Last-Modified') && !$this->has('Expires')) {
return'no-cache';
return'no-cache, private';
Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Addingprivate is what we are doing by default line 299 in the same situation.

@fabpotfabpotforce-pushed theresponse-headers-fix branch from429034f to66afa01CompareJune 22, 2016 13:19
$bag1 =newResponseHeaderBag($headers);
$bag2 =newResponseHeaderBag($bag1->allPreserveCase());
//print_r($bag1->allPreserveCase());
//print_r($bag2->allPreserveCase());

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Theseprint_r() weren't removed.

@nicolas-grekas
Copy link
Member

👍 (on 3.2 or as bug fix either)

@romainneutron
Copy link
Contributor

👍

@fabpotfabpot merged commit66afa01 intosymfony:masterJun 23, 2016
fabpot added a commit that referenced this pull requestJun 23, 2016
This PR was merged into the 3.2-dev branch.Discussion----------Response headers fix| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | yes| New feature?  | no| BC breaks?    | yes/no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#16171,#16307| License       | MIT| Doc PR        | n/aTo fix the inconsistency mentioned in#16171, I think the "best" solution would be to add `private` when cache-control is not set, which was the intention but was forgotten.I propose to make the fix in 3.2 only as it might be a BC break.Commits-------66afa01 [HttpFoundation] added private by default when setting Cache-Control to no-cache
@fabpotfabpot mentioned this pull requestOct 27, 2016
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

No milestone

Development

Successfully merging this pull request may close these issues.

5 participants

@fabpot@nicolas-grekas@romainneutron@javiereguiluz@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp