8000 Fix a typo in an HTTP Cache code example · symfony/symfony-docs@69afb94 · GitHub
[go: up one dir, main page]

Skip to content

Commit 69afb94

Browse files
aybbouwouterj
authored andcommitted
Fix a typo in an HTTP Cache code example
1 parent 1293df8 commit 69afb94

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

http_cache.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,8 @@ The *easiest* way to cache a response is by caching it for a specific amount of
220220
// somehow create a Response object, like by rendering a template
221221
$response = $this->render('blog/index.html.twig', []);
222222

223-
// cache for 600 seconds
224-
$response->setSharedMaxAge(600);
223+
// cache for 3600 seconds
224+
$response->setSharedMaxAge(3600);
225225

226226
// (optional) set a custom Cache-Control directive
227227
$response->headers->addCacheControlDirective('must-revalidate', true);

0 commit comments

Comments
 (0)
0