How does CDN caching work and what is the cache key?
IntermediateConceptLoad Balancers, Proxies & CDNs
Answer
The edge looks up a cache entry using the cache key, by default scheme, host, path and query string, plus any headers or cookies you include. On a miss it fetches from the origin and stores according to Cache-Control and CDN rules.
Including too much (all cookies, unneeded query params) fragments the cache and destroys hit ratio. Keep the key minimal and normalize query strings.
More on Load Balancers, Proxies & CDNs
What is a load balancer and why do we use one?BeginnerWhat is the difference between L4 and L7 load balancing?IntermediateCompare ALB, NLB, GWLB and Classic Load Balancer in AWS.IntermediateWhat load-balancing algorithms are common?BeginnerWhat are health checks and how should they be designed?AdvancedWhat is connection draining (deregistration delay)?Intermediate