Closed andresbravog closed 6 years ago
Cache-Control headers can be provided to S3 elements in order to allow browser and CloudFront caching
http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html
In order to control this by file or for all of them I've created the possibility to give that custom param
Now we can do something like
{ "name": "yourProject", "custom": { "client": { "bucketName": "yourBucketName", "CacheControl": { "value": "max-age=300, s-maxage=300", "regex": ".*\\.(gif|jpe?g|png|js|svg|css)$" } }, "plugins": [ "serverless-client-s3" ] }
ping
Cache-Control headers can be provided to S3 elements in order to allow browser and CloudFront caching
http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html
In order to control this by file or for all of them I've created the possibility to give that custom param
Now we can do something like