Updated November 2026: Cloudflare's new soft invalidation endpoint and Cache Reserve purge change (September 2026), published Fastly and Akamai purge rate limits, and a step-by-step answer to how CDN cache invalidation works.
Why this matters
If you run a streaming product on a CDN, someone on the team will eventually propose "let's just purge the cache" as a fix. They will be right about the symptom: old content is being served. They will almost always be wrong about the tool. Indiscriminate purging is slow on most CDNs, expensive once you pass a small free tier, and it quietly erodes the cache hit ratio that pays your bills. We wrote this article for the engineer who has been handed the purge button, for the platform lead who wants to know when purging is the right answer, and for the product owner who needs a one-page checklist before the next "urgent takedown" lands on the team.
Cache invalidation in streaming: the short answer
Cache invalidation (most CDNs call it a purge) tells a CDN to drop its stored copy of an object, so the next request goes back to origin. In a streaming pipeline it is the last resort, not a deploy step: short Cache-Control on manifests, immutable versioned segment URLs and live playlist roll-off cover almost every change. Invalidation remains for four cases: a DRM key revocation, a legal takedown, a single broken asset and a live stream that has to be pulled.
When you do invalidate, fix the origin first and purge the narrowest scope available: one manifest, one prefix or one cache tag. As of November 2026, propagation takes about 150 ms on Fastly and Cloudflare and under 5 seconds at P95 for CloudFront cache tags; AWS publishes no figure for classic CloudFront path invalidations.
What "cache invalidation" actually means
A CDN keeps copies of your files at edge locations near the viewer, so it can answer a request without going back to your origin server. Cache invalidation tells the CDN to forget its copy of a file and fetch a fresh one from origin the next time anyone asks for it. Cloudflare, Fastly and Akamai call it a purge, while Amazon CloudFront and Google Cloud CDN call it an invalidation; the operation is the same.
Three details in that short definition regularly trip teams up.
First, invalidation takes time. Since April 29, 2026 CloudFront can invalidate by cache tag in under 5 seconds at P95, or under 25 seconds end to end including status reporting (AWS, 2026). For classic path invalidations AWS publishes no propagation figure; most finish within minutes, and some take much longer. Fastly reports a 150 ms mean global purge time (re-confirmed December 31, 2022), and Cloudflare reports under 150 ms at P50 for purge by tag, hostname and prefix (September 2024). Live segments that have already left the cache and sit in a player's buffer are out of reach even at 150 ms.
Second, invalidation costs money at any real scale. CloudFront's first 1,000 invalidation paths per month are free across the whole AWS account; each path above that costs $0.005 (AWS pricing, October 2026). A wildcard path (/season-3/*) counts as one path even if it matches a hundred thousand objects, and so does one cache tag, so "purge a prefix" or "purge a tag" is almost always cheaper than "purge each segment". Other CDNs include purges in the plan and rate-limit them instead: Cloudflare allows 5 tag, prefix or hostname purge requests per minute on Free and 50 per second on Enterprise (Cloudflare docs, 2026).
Third, invalidation leaves the origin untouched. It clears only the CDN's cached copy. If the file at origin is still the bad version, the first request after the invalidation pulls the bad version back into cache, and the invalidation was wasted. So fix the origin first, then invalidate.
How does cache invalidation work in a content delivery network?
Cache invalidation in a content delivery network takes five steps. You send a purge request that names URLs, a prefix or a cache tag. The CDN's control plane distributes it to every edge location. Each edge finds the matching objects and either marks them stale or drops them. The next viewer request for such an object misses the cache, so the edge fetches a fresh copy from the origin or shield and caches it again. The origin and the viewer's device stay as they were.
- Request. An API call or a dashboard action names the scope: one URL, a wildcard path such as
/titles/8812/*, a hostname, or a cache tag that the origin attached to its responses through aCache-Tag,Surrogate-KeyorEdge-Cache-Tagheader. - Fan-out. The control plane pushes the request to every point of presence. The published numbers describe this step: about 150 ms on Fastly and Cloudflare, about 10 seconds on Google Cloud CDN and under 5 seconds at P95 for CloudFront cache tags (vendor figures, 2024 to 2026).
- Match. Each edge looks up the matching objects. A tag purge is a lookup in a tag index, so a single request can clear thousands of segments. A URL purge clears only the exact cache key, and that is why signed query strings inside the key make purges miss.
- Stale or gone. A soft purge (Fastly soft purge, Akamai invalidate, Cloudflare's
invalidate_cacheendpoint since September 28, 2026) marks the object stale; the edge then revalidates it with the origin and keeps it on a304 Not Modified. A hard purge (Fastly purge, Akamai delete, Cloudflarepurge_cache) removes the object entirely. - Refill. The next request misses and goes to the shield or origin, and the fresh response is cached again under the same key. Each edge refills independently, so a wide purge turns into a burst of origin traffic.
Soft purge costs less when the origin answers conditional requests. Cloudflare's invalidation needs an ETag or Last-Modified header on the cached object, so the origin can answer 304 Not Modified, and with stale-while-revalidate set it can keep serving the stale copy during revalidation (Cloudflare docs, November 2026). A takedown needs the opposite: use a hard purge so the edge stops serving the object immediately.
Why "purge the URL" is the wrong move in a streaming pipeline
Static-site teams use purge by default because their content model rewards it. A blog post changes, you purge the URL, and readers see the new copy within seconds. The habit transfers badly to streaming, because a stream is a tree of URLs whose shape changes every second.
A typical HLS live stream consists of a master playlist, four to six media playlists (one per rung of the bitrate ladder), one initialization segment per rendition, an encryption-key URI, and a tail of media segments that the packager adds to and removes from the playlist every few seconds. With a 4-second segment cadence, a single viewer makes around 30 requests per minute: 15 segments and 15 playlist reloads. An event with ten thousand viewers sends about 300,000 requests per minute to the CDN.
If your reflex is "the stream looks wrong, purge it", a few facts get in the way. Segments already in the players' buffers are beyond reach, since they have left the CDN and live on the viewer's device. You probably cannot purge faster than the packager produces new segments: a CloudFront path invalidation can take minutes, and with 2-second segments dozens of new ones exist by the time it completes. Mass-purging a live stream is also one of the few operations that can break it, because every edge refilling from origin at once can exhaust your origin connection pool.
For static VOD assets the math is gentler, yet the reflex still misfires. The useful question is rarely "how do I purge?" and usually "why do I need to purge at all?". In a healthy streaming pipeline that question has a handful of answers, and four other tools resolve each of them more cheaply.
The four tools that replace invalidation in streaming
Invalidation comes fourth on this list. The first three handle almost every change.
Tool 1 — short Cache-Control on the things that change
Manifests change constantly during live streams. Cache them at the edge for as short a time as is practical, so a player that requests a fresh playlist actually receives one. The widely cited rule of thumb is half the target segment duration: a stream with a six-second target duration sets the playlist's max-age to three seconds, and a stream with two-second segments uses one second. Apple's HLS Authoring Specification (revision of June 26, 2025) sets the outer limit from the player's side: a live playlist update should be treated as invalid when its Last-Modified header is more than three target durations older than its Date header (rule 8.24). If an edge holds a playlist too long, players see a stream that has stopped growing.
Media segments never change once they exist, so we go the other way for them: Cache-Control: public, max-age=31536000, immutable. The immutable directive (defined in RFC 8246) tells browsers they can skip even the cheap revalidation round trip; most CDNs simply honour the long max-age. A "1-second manifest" paired with a "1-year immutable segment" is the basis of every well-tuned streaming CDN configuration.
Two more directives from RFC 5861 (2010) are worth setting on manifests. stale-while-revalidate=2 lets the edge answer at once from a just-expired playlist while it fetches the new one, and stale-if-error=10 keeps playback going for a few seconds if the origin or packager briefly fails. Keep both shorter than the live window, or players will ask for segments that have already rolled off.
Tool 2 — versioned filenames
If a segment really needs to change, usually because you re-encoded it, fixed an ad insertion or repaired a stutter, change its name. Object season-3/episode-7/v1/segment-00042.m4s becomes season-3/episode-7/v2/segment-00042.m4s. The manifest now points at the v2 path, the CDN sees a URL it has never cached, and the origin serves the fresh bytes. The v1 URL ages out of cache on its own.
This pattern is what lets you set max-age=31536000 on segments safely. If a segment's name changes whenever its bytes change, you never have to invalidate it. CloudFront's own documentation recommends versioned file names over invalidation: you control when the change goes out, and you do not pay for invalidating files.
The cost picture follows from that. With versioned names, the only origin fetches are the first requests for a brand-new URL, so the cache hit ratio stays where it was. A team that purges on every deploy discards a warm cache each time and pays for the refill in origin egress.
Tool 3 — segment-timeline rewrites
For live streams, the manifest itself is the invalidation primitive. The packager drops old segments from the start of the media playlist's window (HLS) or from the SegmentTimeline element (DASH), and players stop requesting them once they have slid out. RFC 8216 §6.2.1 lets a live HLS playlist lose segments only from the start and in order, and §6.2.2 keeps the playlist at least three target durations long, so roll-off takes as long as the window. The DASH-IF Implementation Guidelines describe this explicitly: "the last period may change from unlimited duration to fixed duration … or one or more periods may be removed entirely from the end of the MPD timeline." HLS gets the same effect with EXT-X-MEDIA-SEQUENCE and the sliding window of EXTINF entries.
The viewer does not see any of this. The bad content rolls off the playlist, and players reload the playlist every target duration. Once the segment has slid out of the window (tens of seconds on a short live window, much longer with DVR), new viewers never request it. The CDN's stale copy of the segment file does not matter because nobody asks for it.
The pattern works for live for the same reason it fails for VOD: a live manifest is dynamic and a VOD manifest is static. For VOD you fall back to tool 2 (versioning) or tool 4 (real invalidation).
Tool 4 — actual cache invalidation, but only when the other three can't help
When you have used tools 1–3 and viewers are still getting the bad content right now, invalidation is the correct answer. The cases that justify it are fewer than most teams expect. We list them below.
When invalidation is the right tool
Here are four scenarios from real production streaming work.
A DRM key rotation, mid-flight
Common Encryption (CENC, ISO/IEC 23001-7) and the EME license model both support key rotation for continuous live content. The encryption key changes on a defined cadence, segments after the rotation point are encrypted with a new key, and players acquire the new license before the rotation time. A revoked viewer is cut off at the license server and by rotating the key early; a CDN purge cannot take back a key the player already holds. Key and license responses should stay out of shared edge caches entirely (private, no-store). The exception is an HLS AES-128 key URI that a team caches at the edge with a short TTL for scale. In that case an early rotation is the one time you purge that path. The segments themselves do not need invalidation.
The mechanism is small and targeted. Revoke at the license server, rotate the key, and if the key URI is edge-cached, purge only the EXT-X-KEY URI (HLS) or the ContentProtection URL (DASH). Nothing else gets purged. The revoked viewer loses access at the next key or license fetch, and everyone else keeps watching without interruption.
A DMCA, GDPR, or right-to-be-forgotten takedown
If a third party files a Digital Millennium Copyright Act notice on a piece of VOD, the safe-harbour requirement is to remove it "expeditiously" (17 U.S.C. §512). The statute sets no hour count, and most platforms work to a 24-hour internal target. GDPR erasure requests must be answered without undue delay and within one month (Article 12(3)). Contractual takedowns, such as a sports league pulling highlights for a regional blackout, are just as urgent.
The procedure is to pull the asset's origin files first, then invalidate the wildcard prefix at the CDN, then leave a 410 Gone or 451 Unavailable response at origin, so any edge that refills after the purge gets the error instead of the asset. Versioning does not help here. The bad version was the only version, and "forgetting v1" is the whole requirement.
A deployed bug in a single piece of content
You shipped a new transcode of a 90-minute movie. A QA engineer notices the audio is two frames out of sync, but only on the 720p rendition. Re-encoding takes an hour, and you cannot leave the broken file in front of 50,000 viewers for that long.
The practical fix is to point the master playlist back at the previous good version now, re-encode under a new versioned path (tool 2), and then switch the master playlist to it. Each switch is one invalidation of the master playlist only, so the CDN's cached copy refreshes immediately. Players stop requesting the broken segments and the CDN evicts them. The whole fix costs two invalidations instead of 800.
A live stream that has to be pulled
A presenter said something the legal team cannot keep on the public stream. You need to cut the stream window short and remove the recorded VOD before it is published. For live, stop ingesting and end the stream. An HLS live playlist loses segments only from the start, so if the DVR window still holds the bad part, publish a fresh playlist on a new path that starts after it, delete the bad segments at origin, and invalidate the old playlist path. For VOD, pull the origin assets first, then invalidate the wildcard at the CDN, then publish a clean replacement under a new version.
This is the textbook case where every other tool is too slow. A new playlist covers the live part, the wildcard invalidation covers the VOD part, and versioning covers the replacement.
How the major CDNs implement invalidation in 2026
The CDNs streaming teams use most implement the same operation under different names, scopes and limits. The table is current as of November 2026.
| CDN | Operation name | Path scope | Tag / surrogate-key scope | Propagation time | Pricing and limits |
|---|---|---|---|---|---|
| Amazon CloudFront | Invalidation | Path + wildcard (/path/*) | Cache tags since April 29, 2026: tag header set per distribution, item #tag, up to 50 tags per object | Tags: < 5 s P95; paths: no published figure | 1,000 paths/month free (tags count as paths); $0.005 per path above; 3,000 file paths or 15 wildcard paths in flight per distribution |
| Akamai (Ion / Adaptive Media Delivery) | Fast Purge (invalidate or delete) | URL, CP code | Cache tag (Edge-Cache-Tag header) | About 5 s (Akamai's figure) | Included in contract; account-wide token buckets: requests refill at 50/s, cache-tag objects at 500/min, URLs at 12,000/min (Akamai docs, 2026) |
| Cloudflare | Purge (hard); Invalidate (soft) since September 28, 2026 | URL, prefix, hostname, everything | Cache-Tag header, every plan since April 2025 | < 150 ms P50 for tag, hostname, prefix (2024) | Included; tag/prefix/hostname purges: Free 5 requests/min, Pro 5/s, Business 10/s, Enterprise 50/s; 100 items per request |
| Fastly | Purge (hard or soft) | URL, purge all | Surrogate-Key header | 150 ms mean, global | Included in usage; URL and surrogate-key purges up to an average of 100,000 per hour per customer; batch purge by key |
| Google Cloud CDN | Invalidate | Path, prefix (/*), host | Cache-Tag header, up to 50 tags per object and 10 per request | About 10 s | Up to 500 invalidation requests per minute |
| Google Media CDN | Invalidate | Host, path, prefix | Built-in and Cache-Tag tags, up to 10 per request | Typically within 1 minute | Rate-limited (HTTP 429); each request is one operation whatever its scope |
Edgio used to sit in this table and no longer exists. Its platform shut down on January 15, 2025, after Akamai bought Edgio's customer contracts out of bankruptcy in December 2024; Microsoft retired Azure CDN from Edgio the day before. Runbooks that still call Edgio purge endpoints are calling endpoints that no longer exist.
Three nuances worth pinning to the wall.
The cache-tag operation is what changed in this market. Fastly built its purge model around surrogate keys early and kept the lead for years with streaming teams who needed to group thousands of segments under one tag and purge the group in a single request. Akamai and Google followed, and Cloudflare opened purge by tag to every plan in April 2025. CloudFront added cache-tag invalidation on April 29, 2026: under 5 seconds at P95, driven by response headers, the same model Fastly introduced. Streaming workloads on AWS that were stuck doing path-by-path invalidations now have a more precise tool. Cloudflare made two changes of its own on September 28, 2026. It added a separate soft invalidation and made tag, hostname, prefix and purge-everything requests force a Cache Reserve miss, so a wide purge on a zone with Cache Reserve pulls every matching object from origin again and bills the write-back as a Class A operation.
Published propagation times are best-case figures. AWS publishes no propagation figure for path invalidations, and AWS re:Post threads show invalidations that normally finish in minutes occasionally running for hours. Fastly's 150 ms and Cloudflare's sub-150 ms are a mean and a median, not a ceiling. Plan as if the tail is several times the published number.
You can be rate-limited. CloudFront rejects new requests with TooManyInvalidationsInProgress once a distribution has 3,000 individual file paths or 15 wildcard paths in flight. Cloudflare and Google Cloud CDN publish their caps too: 5 tag, prefix or hostname purges per minute on Cloudflare Free, 500 requests per minute on Cloud CDN. Fastly limits URL and surrogate-key purges to an average of 100,000 per hour per customer, and Akamai Fast Purge refills cache-tag tokens at 500 per minute across the whole account. A team that scripts "purge on every deploy" will eventually hit the limit during a real incident.
How to configure edge caching and cache invalidation for a VOD catalog
For a video-on-demand catalog, cache everything at the edge for a long time and ship changes through new URLs instead of purges. Give each title a versioned path and mark segments immutable. Keep the master playlist on a short TTL, tag every response with the title ID, and reserve invalidation for the one manifest or one tag that a fix or takedown actually needs.
| Object | Cache-Control at origin | Path pattern | How it changes |
|---|---|---|---|
Media and init segments (.m4s, .ts, init.mp4) | public, max-age=31536000, immutable | /titles/{id}/v{n}/{rendition}/seg-00042.m4s | New version path on re-encode; never invalidated |
| Media playlists (VOD) | public, max-age=3600 | /titles/{id}/v{n}/{rendition}.m3u8 | Versioned together with their segments |
| Master playlist or MPD | public, max-age=60, stale-while-revalidate=30 | /titles/{id}/master.m3u8 (unversioned entry point) | Rewritten to point at the new version; invalidate this one URL or the title tag |
| DRM key and license responses | private, no-store | per key ID | Key rotation; invalidate the key URI only if it was cached |
| Thumbnails, sprites, WebVTT captions | public, max-age=86400 | versioned like segments | New version path |
Add a cache-tag header to every response that belongs to a title, for example title-8812, season-s03. A takedown then needs one tag invalidation, with no guessing at wildcards. On CloudFront, tag items start with # and go into the same CreateInvalidation call as paths:
aws cloudfront create-invalidation --distribution-id EDFDVBD6EXAMPLE --paths "#title-8812"
Fixing one broken title takes three steps: upload v3 under a new path, rewrite master.m3u8 to point at it, then invalidate /titles/8812/master.m3u8. Keep signed-URL tokens out of the cache key, otherwise the invalidation misses the objects it targets; origin shielding and tiered caching collapse the refill after a purge into one origin fetch per object instead of one per edge.
What does "stream cache expired" mean?
"Stream cache expired" is not a CDN error code. A player, app or media server shows this message when the copy it relied on is no longer valid: usually an expired token, a player that fell behind the live window, or an edge serving a stale live playlist. Each cause needs its own fix.
The first cause is an expired token. The playlist carries signed segment URLs, the token expires before the session ends or while the viewer is paused, and the edge starts answering 403. Issue tokens that outlast the longest expected session, or refresh them on every playlist reload; our guide to token authentication and signed URLs covers the patterns.
The second cause is a player that fell behind the live window. The segment it requests has rolled off the playlist, and the origin returns 404 or 410. RFC 8216 §6.2.2 requires the server to keep a removed segment available for its own duration plus the duration of the longest playlist that contained it. After that, the player has to reload the playlist and jump to the live edge.
The third cause is an edge that kept serving an old live playlist. When the manifest TTL is longer than the segment duration, players see a playlist that stops growing, and Apple's rule 8.24 treats it as invalid after three target durations. The fix is a manifest max-age of about half the target duration. Purging the live playlist does not help.
The two pitfalls that quietly break production
Pitfall — fix origin first, invalidate second. An invalidation against a still-broken origin pulls the bad content right back into cache, costing you an invalidation for nothing. The order is always: stop the origin from serving the bad file, then invalidate. For takedowns that means deleting (or 410-ing) the asset at origin first.
Pitfall — wildcard scope drift. A/series-7/*invalidation looks tight; a/*invalidation aimed at a single typo collapses the cache hit ratio of every other asset on the distribution until the cache refills. CloudFront's own guidance is "specify the path only to the files that you really need to invalidate." Build a guardrail in the deploy pipeline that rejects/*and any wildcard shallower than the title level.
One more case deserves a sentence, though it is less common: invalidations against URLs with signed-URL query parameters can match nothing if your cache key includes the signature. Our guide to cache keys for streaming covers the cache-key side of that problem in full.
Cache invalidation in streaming: FAQ
What is the difference between a purge and an invalidation?
In substance there is none: CloudFront and Google say invalidation, while Fastly, Cloudflare and Akamai say purge. The distinction that matters is soft versus hard. A Fastly soft purge or an Akamai invalidate marks the object stale so the edge revalidates it with origin, while a hard purge or an Akamai delete removes it outright. Cloudflare has offered the same split since September 28, 2026: invalidate_cache for soft, purge_cache for hard.
How long does a CloudFront invalidation take?
A cache-tag invalidation takes under 5 seconds at P95 (AWS, April 2026). AWS publishes no figure for path invalidations; most finish within minutes, and a few take much longer.
How much does CloudFront cache invalidation cost?
Each AWS account gets the first 1,000 invalidation paths per month free, then pays $0.005 per path (October 2026). A wildcard path and a cache tag each count as one path, however many objects they clear.
Should you invalidate the CDN cache on every deploy?
No. Put a version in segment and playlist paths so that a deploy creates new URLs the CDN has never cached, and let the old ones age out. Purging on every deploy throws away the warm cache and hits rate limits when a real incident comes.
Can you invalidate segments that are already in a player's buffer?
No. A purge clears copies on the CDN, and the copy on the viewer's device stays. For live content, remove the segment from the playlist; for a takedown, also return 410 or 451 at origin.
Do you need to purge HLS playlists during a live stream?
No. A live playlist with max-age at about half the target duration refreshes by itself. Bad segments drop out only when the window slides past them; to remove them sooner, end the stream, publish a new playlist on a new path, and invalidate the old one.
What Cache-Control should HLS segments and playlists use?
Segments: public, max-age=31536000, immutable. Live playlists: max-age of half the target duration, for example 1 second for 2-second segments. VOD playlists: minutes to an hour, with versioned paths doing most of the work.
Which CDN services provide real-time content purging?
Fastly (about 150 ms mean) and Cloudflare (under 150 ms at P50 for tag, hostname and prefix purges) publish sub-second global purge times. CloudFront cache tags take under 5 seconds at P95, Google Cloud CDN about 10 seconds, and Akamai quotes about 5 seconds for Fast Purge (vendor figures, 2024 to 2026).
Free download: Cache Invalidation PlaybookOne page for the next incident: the four streaming cache-control tools in the order you should reach for them, the four use cases that actually earn an invalidation, and the pre-flight checks to run before anyone clicks purge.Where Fora Soft fits in
Most of our streaming, OTT, e-learning, telemedicine and surveillance clients run into a cache-invalidation question within the first six months after launch. Usually it is a takedown request, a key-rotation flow or a botched ladder deploy. We build the four-tool playbook into the platform from the start: short max-age on manifests, immutable versioned segments, rolloff driven by the segment timeline for live, and a guarded invalidation path that requires a fix at origin and a review of wildcard scope. Our DRM and compliance work rests on the same setup. There, the gap between "we purged everything" and "we purged the right thing" decides whether you get a clean incident report or an origin outage plus an unexpected CDN bill. It ships as standard in the OTT and IPTV platforms we build and in our wider video streaming software development for live and VOD. When a catalog sits on more than one CDN, the guarded purge has to reach every provider in one step, and we wire that into the scalable multi-CDN streaming architecture we design for high-traffic products.
The book
Video Streaming: A Complete Guide to Video Delivery: From ABR and CDNs to Players, WebRTC, DRM, and the Economics of Streaming
We wrote a seven-volume handbook that takes the whole video stack apart, from the pixel to production, so that someone who works through it can design and build a delivery pipeline that rarely needs the purge button. Volume 3 is where caching lives: what the edge actually stores, how cache keys and TTLs decide your hit ratio, origin shielding and tiered caching, and the delivery economics that turn one careless wildcard into a month of extra CDN bill. Volume 2 covers the packaging and manifest formats behind tools 2 and 3 here — HLS, MPEG-DASH and CMAF, and the segment timelines that do the invalidation work for you. Written by Nikolay Sapunov, CEO at Fora Soft.
Is the purge button a habit on your team, or a last resort?
Send us the Cache-Control headers you ship today, how your manifests and segments are named, and the last three times somebody purged. We will tell you which of the four tools your pipeline is missing, where a wildcard can take the hit ratio of every other asset down with it, and what a guarded invalidation path looks like in a deploy pipeline — fix-at-origin step, scope review, and all. 250+ video products shipped since 2005.
See our case studies
Case study
Worldcast Live
HD concerts at 1.5 Gb/s and 0.4–0.5 s glass-to-glass for 10,000 simultaneous viewers. On a live show nothing is ever purged in time: the segment timeline rolls the bad part off the playlist while a global purge would still be propagating.
Case study
Mindbox
An AI video management system with 50+ deployments, pulling RTSP from cameras through FFmpeg into HLS. Recorded footage has to disappear on request — the takedown case from this article: remove it at origin first, then invalidate the prefix.
Case study
Sprii
A live shopping platform with 72,000+ streamed events and €365M in sales over RTMP and WebRTC. Overlays and replays keep changing after a show ends, and versioned paths absorb all of it without a single call to the purge API.
What to read next
CDN
What a CDN Actually Is, for the Streaming Engineer
The layer this article keeps clearing: what the edge holds, and why.
Caching
Cache Keys for Streaming, and Why They Break
Why an invalidation can miss the very object it was aimed at.
Caching
Origin Shielding and Tiered Caching
How to stop a purge's refill from flooding your origin.
Security
Token Authentication, Signed URLs, and Origin Protection
Where the signature in your cache key comes from in the first place.
References
- Amazon Web Services. CloudFront Developer Guide: Invalidate files to remove content. https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Invalidation.html (accessed 2026-05-24).
- Amazon Web Services. CloudFront Developer Guide: Pay for file invalidation. https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PayingForInvalidation.html (accessed 2026-05-24). First 1,000 paths/month free; $0.005 each above that.
- Amazon Web Services. Manage caches with precision using Amazon CloudFront Invalidation by Cache Tag. Networking & Content Delivery Blog, April 2026. 5-second P95 propagation; tag-based invalidation header model.
- Fastly Documentation. Purging with surrogate keys. https://www.fastly.com/documentation/guides/full-site-delivery/purging/purging-with-surrogate-keys/ (accessed 2026-05-24).
- Fastly Documentation. Streaming configuration guidelines. https://www.fastly.com/documentation/guides/full-site-delivery/video/streaming-configuration-guidelines/ (accessed 2026-05-24).
- Cloudflare Documentation. Purge cache by tag / Cache-Tag header. https://developers.cloudflare.com/cache/how-to/purge-cache/purge-by-tags/ (accessed 2026-05-24).
- Google Cloud Documentation. Media CDN: Invalidate cached content. https://docs.cloud.google.com/media-cdn/docs/cache-invalidation (accessed 2026-05-24).
- Akamai TechDocs. Fast Purge API v3 reference. https://techdocs.akamai.com/purge-cache/reference/api (accessed 2026-05-24).
- IETF. RFC 9111: HTTP Caching, June 2022. Sections 4.4 (Invalidation) and 5.2 (Cache-Control). Replaces RFC 7234.
- IETF. RFC 8246: HTTP Immutable Responses, September 2017. Defines the
immutableCache-Control extension. - IETF. RFC 8216: HTTP Live Streaming, August 2017. §4.4.4 (EXT-X-KEY), §6.2.2 (sliding window of media playlists).
- Apple. HTTP Live Streaming (HLS) Authoring Specification for Apple devices, revision 2025-06-26. Guidance on manifest freshness and segment availability.
- ISO/IEC. 23009-1:2022, Information technology: Dynamic adaptive streaming over HTTP (DASH). Annex on SegmentTimeline and dynamic MPD updates.
- DASH-IF. Implementation Guidelines: Restricted Timing Model. https://dashif-documents.azurewebsites.net/Guidelines-TimingModel/ (accessed 2026-05-24). Covers live MPD timeline updates and period removal.
- ISO/IEC. 23001-7:2023, Information technology, MPEG systems technologies, Part 7: Common encryption in ISO base media file format files. Its key-rotation provisions are cited by streaming DRM implementations.
- W3C. Encrypted Media Extensions, Working Draft, 13 October 2026 (the September 2017 Recommendation is still the latest Recommendation). https://www.w3.org/TR/encrypted-media/ (accessed 2026-10-24).
- Unified Streaming Documentation. Caching recommendations: Cache invalidation/purge. https://docs.unified-streaming.com/best-practice/caching/recommendations/configuration/cache-invalidation.html (accessed 2026-05-24).
- Amazon Web Services. Amazon CloudFront now supports invalidation by cache tag. What's New, April 29, 2026. https://aws.amazon.com/about-aws/whats-new/2026/04/cloudfront-invalidation-cache-tag/ (accessed 2026-10-24). Under 5 s at P95, under 25 s end to end.
- Amazon Web Services. CloudFront Developer Guide: Concurrent invalidation request maximum. https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/InvalidationLimits.html (accessed 2026-10-24). Up to 3,000 file paths or 15 wildcard paths in progress per distribution.
- Cloudflare. Changelog: All cache purge methods now available for all plans, April 2025. https://developers.cloudflare.com/changelog/2025-04-01-purge-for-all/ (accessed 2026-10-24).
- Cloudflare Documentation. Cache plans and purge limits. https://developers.cloudflare.com/cache/plans/ (accessed 2026-10-24).
- Cloudflare Blog. Instant Purge: invalidating cached content in under 150ms, September 24, 2024. https://blog.cloudflare.com/instant-purge/ (accessed 2026-10-24).
- Fastly Blog. Fastly Instant Purge: under 150ms for over a decade, October 8, 2024. https://www.fastly.com/blog/fastly-instant-purge-under-150ms-for-over-a-decade (accessed 2026-10-24).
- Google Cloud Documentation. Cloud CDN: Cache invalidation overview. https://docs.cloud.google.com/cdn/docs/cache-invalidation-overview (accessed 2026-10-24). Takes about 10 s; up to 500 requests per minute.
- Microsoft Learn. Azure CDN from Edgio retirement FAQ. https://learn.microsoft.com/en-us/azure/cdn/edgio-retirement-faq (accessed 2026-10-24). The Edgio platform shut down on January 15, 2025.
- IETF. RFC 5861: HTTP Cache-Control Extensions for Stale Content, May 2010. Defines
stale-while-revalidateandstale-if-error. - R. Pantos. HTTP Live Streaming 2nd Edition, draft-pantos-hls-rfc8216bis-22, May 1, 2026 (in the RFC Editor queue). https://datatracker.ietf.org/doc/draft-pantos-hls-rfc8216bis/ (accessed 2026-10-24).
- Cloudflare Docs. Invalidate cached content. https://developers.cloudflare.com/cache/guides/invalidate-cache/ (accessed 2026-11-23). Soft purge via
invalidate_cacherequires ETag or Last-Modified and shares the purge rate limits. - Cloudflare Changelog. Purge now forces a cache miss for Cache Reserve content, September 28, 2026. https://developers.cloudflare.com/changelog/post/2026-09-28-cache-reserve-purge-behavior/ (accessed 2026-11-23).
- Fastly Documentation. Getting started with purging. https://www.fastly.com/documentation/guides/concepts/edge-state/cache/purging/ (accessed 2026-11-23). Soft vs hard purge; URL and surrogate-key purges average 100,000 per hour per customer.
- Akamai TechDocs. Fast Purge API: Rate limiting. https://techdocs.akamai.com/purge-cache/reference/rate-limiting (accessed 2026-11-23). Token buckets per object type: URL 12,000/min, cache tag 500/min, CP code 30/min.
