From bad74bd0b81db94c260fbca1af863dab45f21fde Mon Sep 17 00:00:00 2001 From: Hemachandar Date: Tue, 14 Oct 2025 18:18:41 +0530 Subject: [PATCH] Add cache header for deployment download API --- .../Platform/Modules/Sites/Http/Deployments/Download/Get.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Appwrite/Platform/Modules/Sites/Http/Deployments/Download/Get.php b/src/Appwrite/Platform/Modules/Sites/Http/Deployments/Download/Get.php index 5a87ce453f..1a3446d175 100644 --- a/src/Appwrite/Platform/Modules/Sites/Http/Deployments/Download/Get.php +++ b/src/Appwrite/Platform/Modules/Sites/Http/Deployments/Download/Get.php @@ -104,9 +104,7 @@ class Get extends Action $response ->setContentType('application/gzip') - ->addHeader('Cache-Control', 'no-cache, no-store, must-revalidate') - ->addHeader('Expires', '0') - ->addHeader('Pragma', 'no-cache') + ->addHeader('Cache-Control', 'private, max-age=3888000') // 45 days ->addHeader('X-Peak', \memory_get_peak_usage()) ->addHeader('Content-Disposition', 'attachment; filename="' . $deploymentId . '-' . $type . '.tar.gz"');