3 namespace Drupal\Core\PageCache\ResponsePolicy;
5 use Drupal\Core\PageCache\ResponsePolicyInterface;
6 use Symfony\Component\HttpFoundation\Request;
7 use Symfony\Component\HttpFoundation\Response;
10 * A policy evaluating to static::DENY when the kill switch was triggered.
12 class KillSwitch implements ResponsePolicyInterface {
15 * A flag indicating whether the kill switch was triggered.
19 protected $kill = FALSE;
24 public function check(Response $response, Request $request) {
31 * Deny any page caching on the current request.
33 public function trigger() {