DenyNoCacheRoutes
class DenyNoCacheRoutes implements ResponsePolicyInterface (View source)
Cache policy for routes with the 'no_cache' option set.
This policy rule denies caching of responses generated for routes that have the 'no_cache' option set to TRUE.
Properties
| protected RouteMatchInterface | $routeMatch | The current route match. |
Methods
string|null
check(Response $response, Request $request)
Determines whether it is save to store a page in the cache.
Details
__construct(RouteMatchInterface $route_match)
Constructs a deny node preview page cache policy.
string|null
check(Response $response, Request $request)
Determines whether it is save to store a page in the cache.