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 d64e993 commit aa1750bCopy full SHA for aa1750b
book/http_cache.rst
@@ -651,6 +651,7 @@ header value::
651
namespace AppBundle\Controller;
652
653
// ...
654
+ use Symfony\Component\HttpFoundation\Response;
655
use Symfony\Component\HttpFoundation\Request;
656
use AppBundle\Entity\Article;
657
@@ -665,6 +666,7 @@ header value::
665
666
667
$date = $authorDate > $articleDate ? $authorDate : $articleDate;
668
669
+ $response = new Response();
670
$response->setLastModified($date);
671
// Set response as public. Otherwise it will be private by default.
672
$response->setPublic();
0 commit comments