Symfony\Component\HttpKernel\HttpCache\Esi
Esi implements the ESI capabilities to Request and Response instances.
For more information, read the following W3C notes:
* ESI Language Specification 1.0 (http://www.w3.org/TR/esi-lang)
* Edge Architecture Specification (http://www.w3.org/TR/edge-arch)
- Author: Fabien Potencier <fabien@symfony.com>
Synopsis
class Esi
{
- // members
- private $contentTypes;
- // methods
- public void __construct()
- public EsiResponseCacheStrategyInterface createCacheStrategy()
- public Boolean hasSurrogateEsiCapability()
- public void addSurrogateEsiCapability()
- public void addSurrogateControl()
- public Boolean needsEsiParsing()
- public string renderIncludeTag()
- public Response process()
- public string handle()
- private string handleEsiIncludeTag()
Members
private
- $contentTypes
Methods
private
- handleEsiIncludeTag() — Handles an ESI include tag (called internally).
public
- __construct() — Constructor.
- addSurrogateControl() — Adds HTTP headers to specify that the Response needs to be parsed for ESI.
- addSurrogateEsiCapability() — Adds ESI/1.0 capability to the given Request.
- createCacheStrategy() — Returns a new cache strategy instance.
- handle() — Handles an ESI from the cache.
- hasSurrogateEsiCapability() — Checks that at least one surrogate has ESI/1.0 capability.
- needsEsiParsing() — Checks that the Response needs to be parsed for ESI tags.
- process() — Replaces a Response ESI tags with the included resource content.
- renderIncludeTag() — Renders an ESI tag.