diff --git a/guides/cache/http.rst b/guides/cache/http.rst index 45541771bf5..7d1e1ac7e4a 100644 --- a/guides/cache/http.rst +++ b/guides/cache/http.rst @@ -684,6 +684,38 @@ less as possible. .. index:: single: Cache; Varnish +Symfony2 reverse proxy Configuration +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +You have to enable ESI for ``HttpCache`` to parse your response for ESI include tag. + +.. configuration-block:: + + .. code-block:: yaml + + # app/config/config.yml + app.config: + esi: + enabled: true + + .. code-block:: xml + + + + + + + + + .. code-block:: php + + // app/config/config.php + $container->loadFromExtension('app', 'config', array( + 'esi' => array( + 'enabled' => true, + ), + )); + Varnish Configuration ~~~~~~~~~~~~~~~~~~~~~