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 6f51f90 commit 9ce1a77Copy full SHA for 9ce1a77
http_cache/validation.rst
@@ -69,7 +69,7 @@ To see a simple implementation, generate the ETag as the md5 of the content::
69
public function homepageAction(Request $request)
70
{
71
$response = $this->render('static/homepage.html.twig');
72
- $response->setETag(md5($response->getContent()));
+ $response->setEtag(md5($response->getContent()));
73
$response->setPublic(); // make sure the response is public/cacheable
74
$response->isNotModified($request);
75
0 commit comments