diff --git a/system/pages/notfound.md b/system/pages/notfound.md index ca7d3ded7..92286644a 100644 --- a/system/pages/notfound.md +++ b/system/pages/notfound.md @@ -2,4 +2,5 @@ title: Not Found routable: false notfound: true +expires: 0 --- diff --git a/system/src/Grav/Common/Grav.php b/system/src/Grav/Common/Grav.php index c7287dbd6..458fe16c6 100644 --- a/system/src/Grav/Common/Grav.php +++ b/system/src/Grav/Common/Grav.php @@ -261,7 +261,7 @@ class Grav extends Container ); $default = function (ServerRequestInterface $request) { - return new Response(404); + return new Response(404, ['Expires' => 0, 'Cache-Control' => 'no-cache, no-store, must-revalidate'], 'Not Found'); }; /** @var Debugger $debugger */