8000 [HttpFoundation] Do not append "private" to "no-cache" in the Cache-Control header by jakzal · Pull Request #17181 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[HttpFoundation] Do not append "private" to "no-cache" in the Cache-Control header #17181

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

Closed
wants to merge 2 commits into from

Conversation

jakzal
Copy link
Contributor
@jakzal jakzal commented Dec 30, 2015
Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #16171
License MIT
Doc PR -

Replaces #16307 with a simpler approach.

@@ -1107,7 +1107,8 @@ public function testEsiCacheForceValidation()
$this->assertEquals('Hello World! My name is Bobby.', $this->response->getContent());
$this->assertNull($this->response->getTtl());
$this->assertTrue($this->response->mustRevalidate());
$this->assertTrue($this->response->headers->hasCacheControlDirective('private'));
$this->assertFalse($this->response->headers->hasCacheControlDirective('private'));
Copy link
Contributor Author

Choose a reason for hiding this comment

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

private, no-cache makes little sense. The Cache-Control header should only contain either public, private or no-cache.

@jakzal jakzal force-pushed the no-cache-cache-control branch from 1ad0e54 to 17149d6 Compare December 30, 2015 12:37
@nicolas-grekas
Copy link
Member

Well, looking at the semantic of no-cache and private, I'm not sure this is right:

@jakzal
Copy link
Contributor Author
jakzal commented Feb 12, 2016

This is wrong indeed.

@jakzal jakzal closed this Feb 12, 2016
@jakzal jakzal deleted the no-cache-cache-control branch February 12, 2016 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0