Esi
class Esi extends AbstractSurrogate
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)
Properties
protected | $contentTypes | from AbstractSurrogate | |
protected | $phpEscapeMap | from AbstractSurrogate |
Methods
No description
Returns a new cache strategy instance.
Checks that at least one surrogate has Surrogate capability.
Handles a Surrogate from the cache.
Returns surrogate name.
Adds HTTP headers to specify that the Response needs to be parsed for Surrogate.
Renders a Surrogate tag.
Details
__construct(array $contentTypes = array('text/html', 'text/xml', 'application/xhtml+xml', 'application/xml'))
bool
hasSurrogateCapability(Request $request)
Checks that at least one surrogate has Surrogate capability.
bool
needsParsing(Response $response)
Checks that the Response needs to be parsed for Surrogate tags.
string
handle(HttpCache $cache, string $uri, string $alt, bool $ignoreErrors)
Handles a Surrogate from the cache.
protected
removeFromControl(Response $response)
Remove the Surrogate from the Surrogate-Control header.
addSurrogateControl(Response $response)
Adds HTTP headers to specify that the Response needs to be parsed for Surrogate.
This method only adds an Surrogate HTTP header if the Response has some Surrogate tags.