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 685db7210..9f0c6ece9 100644 --- a/system/src/Grav/Common/Grav.php +++ b/system/src/Grav/Common/Grav.php @@ -251,7 +251,7 @@ class Grav extends Container ); $default = static function () { - return new Response(404); + return new Response(404, ['Expires' => 0, 'Cache-Control' => 'no-cache, no-store, must-revalidate'], 'Not Found'); }; $collection = new RequestHandler($this->middleware, $default, $container);