/plushcap/analysis/cloudflare/introducing-a-powerful-way-to-purge-cache-on-cloudflare-purge-by-cache-tag

Introducing a Powerful Way to Purge Cache on CloudFlare: Purge by Cache-Tag

What's this blog post about?

CloudFlare introduces Cache-Tags, a new method for purging cached content. Cache-Tags are assigned to cached content via a Cache-Tag response header and stored as metadata with cached objects. This allows global purges to take only seconds, targeting a granular, finite set of cached objects. Examples include e-commerce websites using Cache-Tags to purge all catalog images at once without affecting other assets, blogs updating JavaScript files in cache without forcing a cache miss on their CSS, and businesses purging cache of hundreds of blog pages without affecting the core platform. CloudFlare's cache is powerful but can be frustrating when content updates are delayed. Cache-Tags provide three different ways to purge the cache: individual files, all files, or by specific tags. To use Cache-Tags, developers simply add a Cache-Tag response header to objects and can purge content using CloudFlare's dashboard or API. Purges take effect globally in just a few seconds, even if the tag purged is associated with hundreds or thousands of cached files. Cache-Tag functionality is automatically enabled for all Enterprise plan websites.

Company
Cloudflare

Date published
Aug. 19, 2015

Author(s)
Dani Grant

Word count
477

Hacker News points
None found.

Language
English


By Matt Makai. 2021-2024.