Ssi
class Ssi implements SurrogateInterface
Ssi implements the SSI capabilities to Request and Response instances.
Methods
Constructor.
Returns surrogate name.
Returns a new cache strategy instance.
Checks that at least one surrogate has Surrogate capability.
Adds HTTP headers to specify that the Response needs to be parsed for Surrogate.
Renders a Surrogate tag.
Details
at line line 37
__construct(array $contentTypes = array('text/html', 'text/xml', 'application/xhtml+xml', 'application/xml'))
Constructor.
at line line 45
string
getName()
Returns surrogate name.
at line line 53
ResponseCacheStrategyInterface
createCacheStrategy()
Returns a new cache strategy instance.
at line line 61
bool
hasSurrogateCapability(Request $request)
Checks that at least one surrogate has Surrogate capability.
at line line 73
addSurrogateCapability(Request $request)
Adds Surrogate-capability to the given Request.
at line line 84
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.
at line line 94
bool
needsParsing(Response $response)
Checks that the Response needs to be parsed for Surrogate tags.
at line line 106
string
renderIncludeTag(string $uri, string $alt = null, bool $ignoreErrors = true, string $comment = '')
Renders a Surrogate tag.
at line line 114
Response
process(Request $request, Response $response)
Replaces a Response Surrogate tags with the included resource content.
at line line 172
string
handle(HttpCache $cache, string $uri, string $alt, bool $ignoreErrors)
Handles a Surrogate from the cache.