Cache headers are a contract; invalidation is its escape hatch.
CDN Caching and Invalidation: cache headers are a contract
move the first decision closer to the user
Renames need build pipeline support.
CDN behavior is controlled by HTTP cache headers and tag/path-based invalidation APIs. The two strongest patterns are versioned URLs (immutable cache) and stale-while-revalidate (soft refresh).
Cache-Control: public, max-age=N for shared caches.
stale-while-revalidate: serve stale immediately, refresh in background.
stale-if-error: serve stale on origin failure — cheap availability.
Invalidate by URL purge for surgical fixes; version bumps for global cache busts.
Marketing changed homepage hero image.