SurrogateInterface
interface SurrogateInterface
Methods
Returns surrogate name.
Returns a new cache strategy instance.
Checks that at least one surrogate has Surrogate capability.
Adds Surrogate-capability to the given Request.
Adds HTTP headers to specify that the Response needs to be parsed for Surrogate.
Checks that the Response needs to be parsed for Surrogate tags.
Renders a Surrogate tag.
Replaces a Response Surrogate tags with the included resource content.
Handles a Surrogate from the cache.
Details
bool
hasSurrogateCapability(Request$request)
Checks that at least one surrogate has Surrogate capability.
void
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.
bool
needsParsing(Response$response)
Checks that the Response needs to be parsed for Surrogate tags.
string
renderIncludeTag(string$uri,string$alt =null,bool$ignoreErrors =true,string$comment ='')
Renders a Surrogate tag.