Do not cache 404 [#3025]

This commit is contained in:
Matias Griese
2020-10-05 11:16:17 +03:00
parent 18921a4f14
commit 23716ff729
2 changed files with 2 additions and 1 deletions

View File

@@ -2,4 +2,5 @@
title: Not Found
routable: false
notfound: true
expires: 0
---

View File

@@ -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 */