Skip to content

Commit 34745bf

Browse files
committed
[HttpKernel] Add option to render Surrogate fragment with absolute URIs
1 parent 341aacf commit 34745bf

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

http_cache/esi.rst

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ possible.
267267
signed when using the fragment renderer and the ``render_esi`` Twig
268268
function.
269269

270-
The ``render_esi`` helper supports two other useful options:
270+
The ``render_esi`` helper supports three other useful options:
271271

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

281+
``absolute_uri``
282+
If set to true, an absolute URI will be generated. **default**: ``false``
283+
284+
.. versionadded:: 6.2
285+
286+
The ``absolute_uri`` option was introduced in Symfony 6.2.
287+
281288
.. _`ESI`: http://www.w3.org/TR/esi-lang

0 commit comments

Comments
 (0)