You can now invalidate the CDN cache by providing a source image

Authors

1 min read

Purge CDN Cache by Source Image ScreenshotPurge CDN Cache by Source Image Screenshot

Vercel Image Optimization dynamically transforms source images to reduce file size while maintaining high quality on the visitor's browser.

You can now invalidate the CDN cache by providing a source image.

This feature marks all transformed images derived from that source image as stale. The next request serves stale content instantly while revalidation happens in the background, with no latency impact for users.

There are several ways to invalidate a source image:

In addition to invalidating by source image, you can also delete by source image if the origin is gone. Deleting the cache can increase latency while new content is generated, or cause downtime if your origin is unresponsive. We recommend you use with caution.

This is available on all plans using the new image optimization price.

Learn more about cache invalidation.