Cache
Once a particular version of an image has been requested and generated for the first time, it is cached for 1 year. For example, these variations would be cached separately:
/m
/m/400x300
/m/400x0
/m/400x0/filters:quality(60)
Requested image variations are cached on the edge locations of the AWS CloudFront CDN utilized by Storyblok. The cache mechanism takes into account the accept
header of the request (provided by the web browser) to automatically determine WEBP support (unless a specific format is requested using the format filter). Therefore, the Image Service will always serve the cached version in the correct format (if it already exists; otherwise, it is immediately generated).
Cache invalidation
An image's cache does not need to be cleared unless it is replaced or changed (e.g., using Storyblok's Image Editor or the Replace Assets app). With the current version of the Image Service, this occurs automatically. With the previous version of the Image Service (using the img2.storyblok.com base URL), the cache can be cleared by navigating to Settings > Assets > Image Service in a space.