sobrenome Posted August 29, 2022 Posted August 29, 2022 I am using S3 file system for most IPS4 static content. But there is no cache-control header by default to tell browsers to cache the static content. S3 bucket has no default metadata to apply to new objects uploaded. Is there an IPS4 setting to add metadata (like "Cache-Control max-age=31536000") when we use S3 as file system?
Marc Posted August 29, 2022 Posted August 29, 2022 There is no way in which to do that at the moment, however I have moved your ticket to our suggestions forum, where it may then be considered for future releases
Ryan Ashbrook Posted August 29, 2022 Posted August 29, 2022 1 hour ago, sobrenome said: Is there an IPS4 setting to add metadata (like "Cache-Control max-age=31536000") when we use S3 as file system? You would likely have better control over things like this if you place your S3 bucket behind a Cloudfront distribution. It's a bit complex, but you can achieve some very specific caching situations. sobrenome 1
sobrenome Posted August 29, 2022 Author Posted August 29, 2022 2 hours ago, Ryan Ashbrook said: You would likely have better control over things like this if you place your S3 bucket behind a Cloudfront distribution. It's a bit complex, but you can achieve some very specific caching situations. Creating a response header policy (to overwrite origin with cache-control) will do the trick, right? Do I have to configure CORS?
Recommended Posts