DenyPrivateImageStyleDownload
class DenyPrivateImageStyleDownload implements ResponsePolicyInterface (View source)
Cache policy for image preview page.
This policy rule denies caching of responses generated by the entity.image.preview route.
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 image preview page cache policy.
string|null
check(Response $response, Request $request)
Determines whether it is save to store a page in the cache.