Skip to content

Commit

Permalink
Change max-age default value of the cache-control header (#182)
Browse files Browse the repository at this point in the history
  • Loading branch information
cambad authored May 10, 2022
1 parent 94e7954 commit 9e93d9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Aws/AwsStorageProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']
)
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/ServeAssets.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']
);
}
Expand Down

0 comments on commit 9e93d9e

Please sign in to comment.