From ffbc98c24155b171e75bae46e036c942d5bf5152 Mon Sep 17 00:00:00 2001 From: shimon Date: Tue, 25 Jun 2024 22:44:28 +0300 Subject: [PATCH] add expiration:0 header to a missed cache request --- app/controllers/shared/api.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/shared/api.php b/app/controllers/shared/api.php index 2b0013db29..6d6bd72c91 100644 --- a/app/controllers/shared/api.php +++ b/app/controllers/shared/api.php @@ -462,6 +462,7 @@ App::init() ->setContentType($cacheLog->getAttribute('mimeType')) ->send($data); } else { + $response ->addHeader('Cache-Control', 'no-cache, no-store, must-revalidate') ->addHeader('Pragma', 'no-cache')