class DenyBigPipeSessionlessResponses in Sessionless BigPipe 8
Same name and namespace in other branches
- 2.x src/PageCache/ResponsePolicy/DenyBigPipeSessionlessResponses.php \Drupal\big_pipe_sessionless\PageCache\ResponsePolicy\DenyBigPipeSessionlessResponses
A policy denying caching of a BigPipe sessionless responses.
Hierarchy
- class \Drupal\big_pipe_sessionless\PageCache\ResponsePolicy\DenyBigPipeSessionlessResponses implements ResponsePolicyInterface
Expanded class hierarchy of DenyBigPipeSessionlessResponses
1 string reference to 'DenyBigPipeSessionlessResponses'
1 service uses DenyBigPipeSessionlessResponses
File
- src/
PageCache/ ResponsePolicy/ DenyBigPipeSessionlessResponses.php, line 13
Namespace
Drupal\big_pipe_sessionless\PageCache\ResponsePolicyView source
class DenyBigPipeSessionlessResponses implements ResponsePolicyInterface {
/**
* {@inheritdoc}
*/
public function check(Response $response, Request $request) {
if ($response instanceof BigPipeResponse) {
return static::DENY;
}
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DenyBigPipeSessionlessResponses:: |
public | function |
Determines whether it is save to store a page in the cache. Overrides ResponsePolicyInterface:: |
|
ResponsePolicyInterface:: |
constant | Deny storage of a page in the cache. |