Interview Prep/Networking/Load Balancers, Proxies & CDNs

How do you invalidate a CDN cache and what is the better approach?

IntermediateConceptLoad Balancers, Proxies & CDNs
Answer

You can issue invalidations (aws cloudfront create-invalidation --distribution-id E123 --paths "/index.html"), which are slow-ish and billed after a free quota. Better: versioned immutable asset names (app.3f9a1c.js) with a one-year TTL, and a short TTL only for the HTML entry point.

That removes the need to invalidate on most deploys.

All Networking questions Roadmap: Networking for DevOps

More on Load Balancers, Proxies & CDNs