8000 [HttpKernel] The Cache-Control header should only contain either publ… · symfony/symfony@17149d6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 17149d6

Browse files
committed
[HttpKernel] The Cache-Control header should only contain either public, private or no-cache
1 parent bea740a commit 17149d6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Symfony/Component/HttpKernel/Tests/HttpCache/HttpCacheTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1107,7 +1107,8 @@ public function testEsiCacheForceValidation()
11071107
$this->assertEquals('Hello World! My name is Bobby.', $this->response->getContent());
11081108
$this->assertNull($this->response->getTtl());
11091109
$this->assertTrue($this->response->mustRevalidate());
1110-
$this->assertTrue($this->response->headers->hasCacheControlDirective('private'));
1110+
$this->assertFalse($this->response->headers->hasCacheControlDirective('private'));
1111+
$this->assertTrue($this->response->headers->hasCacheControlDirective('must-revalidate'));
11111112
$this->assertTrue($this->response->headers->hasCacheControlDirective('no-cache'));
11121113
}
11131114

0 commit comments

Comments
 (0)
0