Ssi
class Ssi extends AbstractSurrogate
Ssi implements the SSI capabilities to Request and Response instances.
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.