

We haven't exposed these parameters on our platform yet, but they are coming soon. Webhooks + Rate-limitingĪs a “pre-release”, we've added webhooks and rate-limiting to the Storage API. If you're interested in how the cache works, see the deep-dive later in this blog post.

Whenever you update or delete an image, the cache will be busted within 60 seconds - for every region in the world.Īs a developer, you no longer need to worry about adjusting your cache parameters - the cache “just works”. With this release we're introducing a Smart CDN. Similarly for deleted images - the cache will continue serving the deleted image until the cache expires. If you update an image in S3, users will continue to see the old, stale image for one hour. This approach introduces the possibility of a “stale” image. This parameter is configurable (for example, you can make it one day, or one year).

After this header expires, we re-check the origin (S3), to see if an image is still available. Our Basic CDN works by adding a 1-hour cache header to every request. We already provide a “basic” CDN for all projects (including Free-tier), so the important update here is some smarter cache invalidation whenever there are changes.

Resizing images can get expensive, so before this release we knew we needed a better caching system. While in Beta, it is only enabled for Pro-tier and Enterprise customers. We support the contain, cover and fill modes.
