From e17c6d5e737f5e2dffa012b8fe52510945a416ef Mon Sep 17 00:00:00 2001 From: Fedir Zinchuk Date: Wed, 19 Aug 2026 10:11:54 +0300 Subject: [PATCH] Remove no-store, pre/post-check for Cache-Control, pragma (#144) * Remove no-store * Remove pre/post-check * Remove pragma --- src/AbstractWebApplication.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/AbstractWebApplication.php b/src/AbstractWebApplication.php index 3901f200..a2d05487 100644 --- a/src/AbstractWebApplication.php +++ b/src/AbstractWebApplication.php @@ -377,10 +377,7 @@ protected function respond() // Always modified. $this->setHeader('Last-Modified', \gmdate('D, d M Y H:i:s') . ' GMT', true); - $this->setHeader('Cache-Control', 'no-store, no-cache, must-revalidate, post-check=0, pre-check=0', false); - - // HTTP 1.0 - $this->setHeader('Pragma', 'no-cache'); + $this->setHeader('Cache-Control', 'no-cache, must-revalidate', false); } else { // Expires. if (!$this->getResponse()->hasHeader('Expires')) {