app/Resources/views/includes/esi_wrapper.html.twig line 1

Open in your IDE?
  1. {% if is_esi_available() %}
  2.     {# render ESI natively in order to generate predictable URIs that can be PURGEd (see `EsiController`) #}
  3.     {# note: Varnish does not support ESI alt/onerror attributes #}
  4.     <esi:include src="{{ path(route, routeParams) }}" />
  5. {% else %}
  6.     {# fallback: render via sub-request (performance hit) #}
  7.     {{ render(path(route, routeParams)) }}
  8. {% endif %}