@@ -588,7 +588,7 @@ To see a simple implementation, generate the ETag as the md5 of the content::
588588 {
589589 public function homepageAction(Request $request)
590590 {
591- $response = $this->render('homepage.html.twig');
591+ $response = $this->render('static/ homepage.html.twig');
592592 $response->setETag(md5($response->getContent()));
593593 $response->setPublic(); // make sure the response is public/cacheable
594594 $response->isNotModified($request);
@@ -1019,7 +1019,6 @@ First, to use ESI, be sure to enable it in your application configuration:
10191019 http://symfony.com/schema/dic/services/services-1.0.xsd
10201020 http://symfony.com/schema/dic/symfony
10211021 http://symfony.com/schema/dic/symfony/symfony-1.0.xsd" >
1022- ">
10231022
10241023 <framework : config >
10251024<!-- ...-->
@@ -1048,7 +1047,7 @@ independent of the rest of the page.
10481047 {
10491048 public function aboutAction()
10501049 {
1051- $response = $this->render('about.html.twig');
1050+ $response = $this->render('static/ about.html.twig');
10521051 // set the shared max age - which also marks the response as public
10531052 $response->setSharedMaxAge(600);
10541053
@@ -1068,7 +1067,7 @@ matter), Symfony uses the standard ``render`` helper to configure ESI tags:
10681067
10691068 ..code-block ::jinja
10701069
1071- {# app/Resources/views/about.html.twig #}
1070+ {# app/Resources/views/static/ about.html.twig #}
10721071
10731072 {# you can use a controller reference #}
10741073 {{ render_esi(controller('AppBundle:News:latest', { 'maxPerPage': 5 })) }}
@@ -1078,7 +1077,7 @@ matter), Symfony uses the standard ``render`` helper to configure ESI tags:
10781077
10791078 ..code-block ::html+php
10801079
1081- <!-- app/Resources/views/about.html.php -->
1080+ <!-- app/Resources/views/static/ about.html.php -->
10821081
10831082 // you can use a controller reference
10841083 use Symfony\C omponent\H ttpKernel\C ontroller\C ontrollerReference;