File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
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)