@@ -144,7 +144,6 @@ To enable caching, modify the code of a front controller to use the caching
144
144
kernel::
145
145
146
146
// web/app.php
147
-
148
147
require_once __DIR__.'/../app/bootstrap.php.cache';
149
148
require_once __DIR__.'/../app/AppKernel.php';
150
149
require_once __DIR__.'/../app/AppCache.php';
@@ -173,7 +172,6 @@ finely tuned via a set of options you can set by overriding the ``getOptions()``
173
172
method::
174
173
175
174
// app/AppCache.php
176
-
177
175
use Symfony\Bundle\FrameworkBundle\HttpCache\HttpCache;
178
176
179
177
class AppCache extends HttpCache
@@ -643,7 +641,7 @@ exposing a simple and efficient pattern::
643
641
// the ETag or the Last-Modified value
644
642
// (based on the Request, data is retrieved from
645
643
// a database or a key-value store for instance)
646
- $article = // ...
644
+ $article = ...;
647
645
648
646
// create a Response with a ETag and/or a Last-Modified header
649
647
$response = new Response();
@@ -656,7 +654,7 @@ exposing a simple and efficient pattern::
656
654
return $response;
657
655
} else {
658
656
// do more work here - like retrieving more data
659
- $comments = // ...
657
+ $comments = ...;
660
658
661
659
// or render a template with the $response you've already started
662
660
return $this->render(
@@ -776,14 +774,15 @@ as this is the only useful one outside of Akamaï context:
776
774
777
775
.. code-block :: html
778
776
777
+ <!doctype html>
779
778
<html >
780
779
<body >
781
- Some content
780
+ ... some content
782
781
783
782
<!-- Embed the content of another page here -->
784
783
<esi:include src =" http://..." />
785
784
786
- More content
785
+ ... more content
787
786
</body >
788
787
</html >
789
788
@@ -1052,4 +1051,4 @@ Learn more from the Cookbook
1052
1051
.. _`HTTP Bis` : http://tools.ietf.org/wg/httpbis/
1053
1052
.. _`P4 - Conditional Requests` : http://tools.ietf.org/html/draft-ietf-httpbis-p4-conditional-12
1054
1053
.. _`P6 - Caching: Browser and intermediary caches` : http://tools.ietf.org/html/draft-ietf-httpbis-p6-cache-12
1055
- .. _`ESI` : http://www.w3.org/TR/esi-lang
1054
+ .. _`ESI` : http://www.w3.org/TR/esi-lang
0 commit comments