From 9e93d9ee815f4329d105fec4fb266833c6c56be3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camille=20Badiqu=C3=A9?= <48125516+cambad@users.noreply.github.com> Date: Tue, 10 May 2022 15:32:52 +0200 Subject: [PATCH] Change max-age default value of the cache-control header (#182) --- src/Aws/AwsStorageProvider.php | 2 +- src/ServeAssets.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Aws/AwsStorageProvider.php b/src/Aws/AwsStorageProvider.php index 7cce3242..a4ac70dd 100644 --- a/src/Aws/AwsStorageProvider.php +++ b/src/Aws/AwsStorageProvider.php @@ -99,7 +99,7 @@ public function executeCopyRequests($requests) $request['url'], array_merge( $request['headers'], - ['Cache-Control' => 'public, max-age=2628000'] + ['Cache-Control' => 'public, max-age=31536000'] ) ); } diff --git a/src/ServeAssets.php b/src/ServeAssets.php index a0b9ca7b..6337a7f5 100644 --- a/src/ServeAssets.php +++ b/src/ServeAssets.php @@ -51,7 +51,7 @@ protected function executeStoreAssetRequests($requests, $assetPath) $storage->store( $request['url'], - array_merge($request['headers'], ['Cache-Control' => 'public, max-age=2628000']), + array_merge($request['headers'], ['Cache-Control' => 'public, max-age=31536000']), $assetPath.'/'.$request['path'] ); }