I am using
"@strapi/provider-upload-aws-s3": "^4.12.1", and it works very well in its basic usage.
I have only one issue that when uploaded to s3 no
Expires is set, and my assets served via Cloudflare with source S3 have no cache ttl.
Google page speed insights also complains that these assets:
A long cache lifetime can speed up repeat visits to your page. Learn more about efficient cache policies.
How can I specify some cache time for this plugin when it uploads stuff to s3 ?
I’m looking for the same thing, have you find a solution?
For future reference if anyone is looking for this.
CacheControl: "public, max-age=31536000", // 1 year: 60*60*24*365 = 31536000