core/modules/system/src/Controller/Http4xxController.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/modules/system/src/Controller/Http4xxController.php b/core/modules/system/src/Controller/Http4xxController.php index c664324..ea69a00 100644 --- a/core/modules/system/src/Controller/Http4xxController.php +++ b/core/modules/system/src/Controller/Http4xxController.php @@ -23,6 +23,7 @@ class Http4xxController extends ControllerBase { public function on401() { return [ '#markup' => $this->t('Please log in to access this page.'), + '#cache' => [], ]; } @@ -35,6 +36,7 @@ public function on401() { public function on403() { return [ '#markup' => $this->t('You are not authorized to access this page.'), + '#cache' => [], ]; } @@ -47,6 +49,7 @@ public function on403() { public function on404() { return [ '#markup' => $this->t('The requested page could not be found.'), + '#cache' => [], ]; }