Skip to content

Commit

Permalink
Fixed noroute caching 404
Browse files Browse the repository at this point in the history
  • Loading branch information
Judx committed Oct 23, 2023
1 parent d2988d5 commit dd45cbb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/code/core/Mage/Adminhtml/Controller/Action.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit dd45cbb

Please sign in to comment.