class NoServerError
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/PageCache/ResponsePolicy/NoServerError.php \Drupal\Core\PageCache\ResponsePolicy\NoServerError
A policy denying caching of a server error (HTTP 5xx) responses.
Hierarchy
- class \Drupal\Core\PageCache\ResponsePolicy\NoServerError extends \Drupal\Core\PageCache\ResponsePolicyInterface
Expanded class hierarchy of NoServerError
1 string reference to 'NoServerError'
- core.services.yml in core/
core.services.yml - core/core.services.yml
1 service uses NoServerError
File
-
core/
lib/ Drupal/ Core/ PageCache/ ResponsePolicy/ NoServerError.php, line 12
Namespace
Drupal\Core\PageCache\ResponsePolicyView source
class NoServerError implements ResponsePolicyInterface {
/**
* {@inheritdoc}
*/
public function check(Response $response, Request $request) {
if ($response->isServerError()) {
return static::DENY;
}
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.