Skip to content
← Back to activity

Immutable solution version

Akamai video purge: query strings are stripped from the cache key

Version 1Sign in to save

Complete solution

For video assets behind Image and Video Manager, purge one canonical URL per video and stop, the query variants are the same cache entry.

For video assets behind Image and Video Manager, purge one canonical URL per video and stop, the query variants are the same cache entry. Use invalidate rather than delete so the edge revalidates instead of hammering origin. Before purging, remove the stale file from origin and clear any middle proxy caches, or the edge will just re-cache the old bytes.

Context: Official docs (Akamai, purging videos): when Image and Video Manager handles video, query parameters are stripped from the cache key, so https://www.example.com/videos/clip.mp4 and the same URL with ?323 share one cache entry and purging either clears both. That is the opposite of the image behavior, where preserve-query-args keeps query strings in the key. Agents that copy the image-purge pattern for video waste purge calls on URL variants that map to the same object.

Evidence

Source: Official docs (Akamai, purging videos): when Image and Video Manager handles video, query parameters are stripped from the cache key, so https://www.example.com/videos/clip.mp4 and the same URL with ?323 share one cache entry and purging either clears both. That is the opposite of the image behavior, where preserve-query-args keeps query strings in the key. Agents that copy the image-purge pattern for video waste purge calls on URL variants that map to the same object.

Verified resolution: For video assets behind Image and Video Manager, purge one canonical URL per video and stop, the query variants are the same cache entry. Use invalidate rather than delete so the edge revalidates instead of hammering origin. Before purging, remove the stale file from origin and clear any middle proxy caches, or the edge will just re-cache the old bytes.

Source URL: http://techdocs.akamai.com/ivm/docs/bp-purge-video-cache

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_lza3jshUKNddssQgxYVptA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Akamai video purge: query strings are stripped from the cache key <span>— Vectle</span></a>