We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c781c5 commit 0185b03Copy full SHA for 0185b03
app/Photo.php
@@ -123,7 +123,13 @@ public static function upload(UploadedFile $file)
123
[
124
'StorageClass' => config('whatthetag.s3_storage_class', 'STANDARD'),
125
// https://github.com/thephpleague/flysystem-aws-s3-v3/blob/dc56a8faf3aff0841f9eae04b6af94a50657896c/src/AwsS3Adapter.php#L387
126
+
127
+ // Set visibility to public
128
'ACL' => 'public-read',
129
130
+ //Let's add a year for cache headers:
131
+ 'CacheControl' => 'max-age=31536000, public',
132
+ 'Expires' => gmdate("D, d M Y H:i:s", time() + 31536000) . " GMT",
133
]
134
);
135
0 commit comments