From f2c8c6c800bcc30bb08431d010aadcbfef3dd73d Mon Sep 17 00:00:00 2001 From: Josh Date: Mon, 23 Feb 2026 11:13:31 -0500 Subject: [PATCH 1/2] fix(dav): set explicit Cache-Control rather than rely on browser heuristics Signed-off-by: Josh --- apps/dav/lib/Connector/Sabre/FilesPlugin.php | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/dav/lib/Connector/Sabre/FilesPlugin.php b/apps/dav/lib/Connector/Sabre/FilesPlugin.php index 83ec30e089301..bc47d63122b6c 100644 --- a/apps/dav/lib/Connector/Sabre/FilesPlugin.php +++ b/apps/dav/lib/Connector/Sabre/FilesPlugin.php @@ -278,6 +278,7 @@ public function httpGet(RequestInterface $request, ResponseInterface $response) } } $response->addHeader('X-Accel-Buffering', 'no'); + $response->addHeader('Cache-Control', 'private, no-cache, must-revalidate'); } /** From 9ce43b3460d21efda117d8977950b0d3d29531cc Mon Sep 17 00:00:00 2001 From: Josh Date: Mon, 23 Feb 2026 12:00:03 -0500 Subject: [PATCH 2/2] test(dav): update FilesPluginTest for explicit Cache-Control header Signed-off-by: Josh --- apps/dav/tests/unit/Connector/Sabre/FilesPluginTest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/dav/tests/unit/Connector/Sabre/FilesPluginTest.php b/apps/dav/tests/unit/Connector/Sabre/FilesPluginTest.php index a5a8358d61faa..97cc260ce2b9f 100644 --- a/apps/dav/tests/unit/Connector/Sabre/FilesPluginTest.php +++ b/apps/dav/tests/unit/Connector/Sabre/FilesPluginTest.php @@ -641,6 +641,7 @@ public function testDownloadHeaders(bool $isClumsyAgent, string $contentDisposit $calls = [ ['Content-Disposition', $contentDispositionHeader], ['X-Accel-Buffering', 'no'], + ['Cache-Control', 'private, no-cache, must-revalidate'], ]; $response ->expects($this->exactly(count($calls)))