Skip to content

Commit 9ce1a77

Browse files
gmorelxabbuh
authored andcommitted
Fix Typo $response->setEtag(..)
instead of $response->setETag(..)
1 parent 6f51f90 commit 9ce1a77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

http_cache/validation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ To see a simple implementation, generate the ETag as the md5 of the content::
6969
public function homepageAction(Request $request)
7070
{
7171
$response = $this->render('static/homepage.html.twig');
72-
$response->setETag(md5($response->getContent()));
72+
$response->setEtag(md5($response->getContent()));
7373
$response->setPublic(); // make sure the response is public/cacheable
7474
$response->isNotModified($request);
7575

0 commit comments

Comments
 (0)