I'm publishing Yii2 Assets to S3 bucket cloudfront CDN, mannually there is an option to add Cache-control expiry (TTL). Seeking for an option to automate publish assets with Cache-control header in s3 bucket.
Asked
Active
Viewed 1,549 times
1 Answers
0
cache-control can be added to S3 objects using both ways, while making PUTobject or updating the existing object metadata.
See the below thread:

James Dean
- 4,033
- 1
- 9
- 18