Skip to content

Commit 6a2a877

Browse files
author
Artem Henvald
committed
Fix typo in method setETag. Correct method name is setEtag
1 parent 6f3e0c4 commit 6a2a877

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

http_cache/validation.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ exposing a simple and efficient pattern::
200200

201201
// create a Response with an ETag and/or a Last-Modified header
202202
$response = new Response();
203-
$response->setETag($article->computeETag());
203+
$response->setEtag($article->computeETag());
204204
$response->setLastModified($article->getPublishedAt());
205205

206206
// Set response as public. Otherwise it will be private by default.

0 commit comments

Comments
 (0)