Skip to content

Commit 2bd434e

Browse files
biozshockweaverryan
authored andcommitted
Added change that brought me in doubt while doing this in my code
1 parent 2ae2aa2 commit 2bd434e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

book/http_cache.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -647,6 +647,9 @@ exposing a simple and efficient pattern::
647647
$response = new Response();
648648
$response->setETag($article->computeETag());
649649
$response->setLastModified($article->getPublishedAt());
650+
651+
// Set response as public. Otherwise it will be private by default.
652+
$response->setPublic();
650653

651654
// Check that the Response is not modified for the given Request
652655
if ($response->isNotModified($this->getRequest())) {

0 commit comments

Comments
 (0)