diff --git a/application/Espo/Core/Application.php b/application/Espo/Core/Application.php index 40937c6d96..603fdb9547 100644 --- a/application/Espo/Core/Application.php +++ b/application/Espo/Core/Application.php @@ -1,4 +1,4 @@ -getSlim()->hook('slim.after.router', function () use (&$slim) { $slim->contentType('application/json'); + + $res = $slim->response(); + $res->header('Expires', '0'); + $res->header('Last-Modified', gmdate("D, d M Y H:i:s") . " GMT"); + $res->header('Cache-Control', 'no-store, no-cache, must-revalidate, post-check=0, pre-check=0'); + $res->header('Pragma', 'no-cache'); }); }