We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ae2aa2 commit 2bd434eCopy full SHA for 2bd434e
book/http_cache.rst
@@ -647,6 +647,9 @@ exposing a simple and efficient pattern::
647
$response = new Response();
648
$response->setETag($article->computeETag());
649
$response->setLastModified($article->getPublishedAt());
650
+
651
+ // Set response as public. Otherwise it will be private by default.
652
+ $response->setPublic();
653
654
// Check that the Response is not modified for the given Request
655
if ($response->isNotModified($this->getRequest())) {
0 commit comments