Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions guides/cache/http.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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

<!-- app/config/config.xml -->
<?xml version="1.0" encoding="UTF-8" ?>

<app:config charset="UTF-8">
<app:esi enabled="true" />
</app:config>

.. code-block:: php

// app/config/config.php
$container->loadFromExtension('app', 'config', array(
'esi' => array(
'enabled' => true,
),
));

Varnish Configuration
~~~~~~~~~~~~~~~~~~~~~

Expand Down