From dd45cbbdb66c6ca8d2661cfc06aa0d4d7760df5c Mon Sep 17 00:00:00 2001 From: Judx Date: Mon, 23 Oct 2023 13:52:35 +0300 Subject: [PATCH] Fixed noroute caching 404 --- app/code/core/Mage/Adminhtml/Controller/Action.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/code/core/Mage/Adminhtml/Controller/Action.php b/app/code/core/Mage/Adminhtml/Controller/Action.php index d15e426e4baa..a49db9e5e47e 100644 --- a/app/code/core/Mage/Adminhtml/Controller/Action.php +++ b/app/code/core/Mage/Adminhtml/Controller/Action.php @@ -299,6 +299,7 @@ public function norouteAction($coreRoute = null) { $this->getResponse()->setHeader('HTTP/1.1', '404 Not Found'); $this->getResponse()->setHeader('Status', '404 File not found'); + $this->getResponse()->setHeader('Cache-Control', 'no-store, no-cache, must-revalidate, max-age=0', true); $this->loadLayout(['default', 'adminhtml_noroute']); $this->renderLayout(); }