Change record status: 
Introduced in branch: 
2.x
Description: 

The CloudFront Purger module now supports native CloudFront cache tag invalidation via the CloudFront Purger Tags submodule.

What changed:

  • Cache tag invalidation support is provided via an experimental submodule (cloudfront_purger_tags), keeping the base module focused on path-based invalidations.
  • Cache tags are hashed to 6-character strings using xxHash3 to stay within CloudFront's header size limits.
  • A Cache-Tags header is added to responses, integrating with Purge's TagsHeader plugin system.
  • Hashed tags are sent to CloudFront with a # prefix in invalidation requests (e.g., #a1b2c3).

Requirements:

  • CloudFront distribution with CacheTagConfig enabled
  • The HeaderName in your CloudFront config must match the module's configured header name (default: Cache-Tags)

See the CloudFront tag-based invalidation documentation for details on configuring your distribution.