Jump to content

S3 metadata for browser caching


sobrenome

Recommended Posts

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Upcoming Events

    No upcoming events found
×
×
  • Create New...