diff --git a/http_cache/validation.rst b/http_cache/validation.rst index f7d95688d03..c3dadbeb901 100644 --- a/http_cache/validation.rst +++ b/http_cache/validation.rst @@ -69,7 +69,7 @@ To see a simple implementation, generate the ETag as the md5 of the content:: public function homepageAction(Request $request) { $response = $this->render('static/homepage.html.twig'); - $response->setETag(md5($response->getContent())); + $response->setEtag(md5($response->getContent())); $response->setPublic(); // make sure the response is public/cacheable $response->isNotModified($request);