mirror of
https://github.com/getgrav/grav.git
synced 2025-12-05 15:29:57 +01:00
Do not cache 404 [#3025]
This commit is contained in:
@@ -2,4 +2,5 @@
|
||||
title: Not Found
|
||||
routable: false
|
||||
notfound: true
|
||||
expires: 0
|
||||
---
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user