DefaultCanCacheStrategy
in package
implements
CanCacheStrategyInterface
Default strategy used to determine of an HTTP request can be cached
Interfaces, Classes and Traits
- CanCacheStrategyInterface
- Strategy used to determine if a request can be cached
Table of Contents
- canCacheRequest() : bool
- Determine if a request can be cached
- canCacheResponse() : bool
- Determine if a response can be cached
Methods
canCacheRequest()
Determine if a request can be cached
public
canCacheRequest(RequestInterface $request) : bool
Parameters
- $request : RequestInterface
-
Request to determine
Return values
bool —canCacheResponse()
Determine if a response can be cached
public
canCacheResponse(Response $response) : bool
Parameters
- $response : Response
-
Response to determine