Skip to content

[HttpKernel] Add option to render Surrogate fragment with absolute URIs #17613

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

Merged
Merged
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
9 changes: 8 additions & 1 deletion http_cache/esi.rst
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ possible.
signed when using the fragment renderer and the ``render_esi`` Twig
function.

The ``render_esi`` helper supports two other useful options:
The ``render_esi`` helper supports three other useful options:

``alt``
Used as the ``alt`` attribute on the ESI tag, which allows you to specify an
Expand All @@ -278,4 +278,11 @@ The ``render_esi`` helper supports two other useful options:
of ``continue`` indicating that, in the event of a failure, the gateway cache
will remove the ESI tag silently.

``absolute_uri``
If set to true, an absolute URI will be generated. **default**: ``false``

.. versionadded:: 6.2

The ``absolute_uri`` option was introduced in Symfony 6.2.

.. _`ESI`: http://www.w3.org/TR/esi-lang