SurrogateInterface
interface SurrogateInterface
Methods
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 24
string
getName()
Returns surrogate name.
at line line 31
ResponseCacheStrategyInterface
createCacheStrategy()
Returns a new cache strategy instance.
at line line 40
bool
hasSurrogateCapability(Request $request)
Checks that at least one surrogate has Surrogate capability.
at line line 47
addSurrogateCapability(Request $request)
Adds Surrogate-capability to the given Request.
at line line 56
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 65
bool
needsParsing(Response $response)
Checks that the Response needs to be parsed for Surrogate tags.
at line line 77
string
renderIncludeTag(string $uri, string $alt = null, bool $ignoreErrors = true, string $comment = '')
Renders a Surrogate tag.
at line line 87
Response
process(Request $request, Response $response)
Replaces a Response Surrogate tags with the included resource content.
at line line 102
string
handle(HttpCache $cache, string $uri, string $alt, bool $ignoreErrors)
Handles a Surrogate from the cache.