mirror of
https://github.com/getgrav/grav.git
synced 2025-12-06 07:49:57 +01:00
Do not cache 404 [#3025]
This commit is contained in:
@@ -2,4 +2,5 @@
|
|||||||
title: Not Found
|
title: Not Found
|
||||||
routable: false
|
routable: false
|
||||||
notfound: true
|
notfound: true
|
||||||
|
expires: 0
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -261,7 +261,7 @@ class Grav extends Container
|
|||||||
);
|
);
|
||||||
|
|
||||||
$default = function (ServerRequestInterface $request) {
|
$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 */
|
/** @var Debugger $debugger */
|
||||||
|
|||||||
Reference in New Issue
Block a user