Documentation

DenyRevalidation extends DefaultRevalidation
in package

Never performs cache revalidation and just assumes the request is invalid

Table of Contents

$canCache  : CanCacheStrategyInterface
$storage  : CacheStorageInterface
__construct()  : mixed
revalidate()  : bool
Performs a cache revalidation
shouldRevalidate()  : bool
Returns true if the response should be revalidated
createRevalidationRequest()  : RequestInterface
Creates a request to use for revalidation
handle200Response()  : bool
Handles a 200 response response from revalidating. The server does not support validation, so use this response.
handle304Response()  : bool
Handle a 304 response and ensure that it is still valid
handleBadResponse()  : mixed
Handles a bad response when attempting to revalidate

Properties

Methods

handle200Response()

Handles a 200 response response from revalidating. The server does not support validation, so use this response.

protected handle200Response(RequestInterface $request, Response $validateResponse) : bool
Parameters
$request : RequestInterface

Request that was sent

$validateResponse : Response

Response received

Return values
bool

Returns true if valid, false if invalid

handle304Response()

Handle a 304 response and ensure that it is still valid

protected handle304Response(RequestInterface $request, Response $validateResponse, Response $response) : bool
Parameters
$request : RequestInterface

Request that was sent

$validateResponse : Response

Response received

$response : Response

Original cached response

Return values
bool

Returns true if valid, false if invalid

Search results