Amazon CloudFront now supports invalidation by cache tag

Amazon CloudFront Cache Tag Invalidation
Amazon CloudFront now allows invalidation of cached objects by cache tag, simplifying the removal of related content from edge locations with a single request. This feature is useful for updating product information, managing legal requests, handling compliance, and refreshing multi-tenant content.
Previously, invalidating related objects required tracking individual URLs or using broad patterns that could clear unrelated content. With cache tag invalidation, developers can tag objects by including a specified header in HTTP responses. They can then invalidate all objects sharing a tag in one request, ensuring users see fresh content within seconds.
You can configure the header name through the CloudFront console, AWS CLI, or API, and assign multiple tags per object for precise cache management. Invalidations take effect in under 5 seconds at P95, with end-to-end completion under 25 seconds at P95.
What to do
- Configure the cache tag header in HTTP responses.
- Assign multiple tags per object for flexible cache management.
- Use the CloudFront console, AWS CLI, or API for tag configuration.
Source: AWS release notes
If you need further guidance on AWS, our experts are available at AWS@westloop.io. You may also reach us by submitting the Contact Us form.



