Skip to content

Commit d9dd9d1

Browse files
committed
minor #7478 Fix Typo $response->setEtag(..) (gmorel)
This PR was submitted for the 3.2 branch but it was merged into the 2.7 branch instead (closes #7478). Discussion ---------- Fix Typo $response->setEtag(..) instead of $response->setETag(..) Keep up the good work ! Commits ------- 9ce1a77 Fix Typo $response->setEtag(..)
2 parents 6f51f90 + 9ce1a77 commit d9dd9d1

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)