public function ResponsePolicyInterface::check in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/PageCache/ResponsePolicyInterface.php \Drupal\Core\PageCache\ResponsePolicyInterface::check()
Determines whether it is save to store a page in the cache.
Parameters
\Symfony\Component\HttpFoundation\Response $response: The response which is about to be sent to the client.
\Symfony\Component\HttpFoundation\Request $request: The request object.
Return value
string|NULL Either static::DENY or NULL. Calling code may attempt to store a page in the cache unless static::DENY is returned. Returns NULL if the policy policy is not specified for the given response.
8 methods override ResponsePolicyInterface::check()
- ChainResponsePolicy::check in core/
lib/ Drupal/ Core/ ProxyClass/ PageCache/ ChainResponsePolicy.php - Determines whether it is save to store a page in the cache.
- ChainResponsePolicy::check in core/
lib/ Drupal/ Core/ PageCache/ ChainResponsePolicy.php - Determines whether it is save to store a page in the cache.
- DenyAdminRoutes::check in core/
modules/ dynamic_page_cache/ src/ PageCache/ ResponsePolicy/ DenyAdminRoutes.php - Determines whether it is save to store a page in the cache.
- DenyNoCacheRoutes::check in core/
lib/ Drupal/ Core/ PageCache/ ResponsePolicy/ DenyNoCacheRoutes.php - Determines whether it is save to store a page in the cache.
- DenyNodePreview::check in core/
modules/ node/ src/ PageCache/ DenyNodePreview.php - Determines whether it is save to store a page in the cache.
File
- core/
lib/ Drupal/ Core/ PageCache/ ResponsePolicyInterface.php, line 40 - Contains \Drupal\Core\PageCache\ResponsePolicyInterface.
Class
- ResponsePolicyInterface
- Defines the interface for response policy implementations.
Namespace
Drupal\Core\PageCacheCode
public function check(Response $response, Request $request);