Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the esi.enabled config part #97

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
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
Prev Previous commit
Add configuration of HttpCache for ESI include tag parsing
  • Loading branch information
damienalexandre committed Feb 9, 2011
commit 759b4606c4a871c7254deace19e0a346bc5b1ede
31 changes: 29 additions & 2 deletions guides/cache/http.rst
Original file line number Diff line number Diff line change
Expand Up @@ -684,10 +684,37 @@ less as possible.
.. index::
single: Cache; Varnish

Symfony2 Reverse Proxy Configuration
Symfony2 reverse proxy Configuration
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

You juste have to enable the ESI when usign Symfony2 Cache kernel.
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