- Term
- Edge caching
- Also called
- CDN caching
- Topic
- Performance
A content delivery network (CDN) has servers in many cities. With edge caching, the first request builds the page and later visitors get the stored copy from the server nearest them, often in a few tens of milliseconds.
The skill is deciding what can be cached and for how long: pages that rarely change are served static, pages with fresh content are regenerated in the background, and only what must run per request (such as security headers) runs at the edge.