From 34745bf96c003ffb09aa8b376f1c239b8fc97f50 Mon Sep 17 00:00:00 2001 From: Antoine Lamirault Date: Sat, 24 Dec 2022 13:24:19 +0100 Subject: [PATCH] [HttpKernel] Add option to render Surrogate fragment with absolute URIs --- http_cache/esi.rst | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/http_cache/esi.rst b/http_cache/esi.rst index 1e10313b982..e52bbfacf3c 100644 --- a/http_cache/esi.rst +++ b/http_cache/esi.rst @@ -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 @@ -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