There was an error while loading. Please reload this page.
1 parent 8932f4f commit 2d6bcdeCopy full SHA for 2d6bcde
book/http_cache.rst
@@ -545,7 +545,7 @@ md5 of the content::
545
546
public function indexAction()
547
{
548
- $response = $this->renderView('MyBundle:Main:index.html.twig');
+ $response = $this->render('MyBundle:Main:index.html.twig');
549
$response->setETag(md5($response->getContent()));
550
$response->isNotModified($this->getRequest());
551
@@ -835,7 +835,7 @@ independent of the rest of the page.
835
836
837
838
- $response = $this->renderView('MyBundle:MyController:index.html.twig');
+ $response = $this->render('MyBundle:MyController:index.html.twig');
839
$response->setSharedMaxAge(600);
840
841
return $response;
0 commit comments