content delivery network
A network of servers around the world that keep copies of a site's files and serve each visitor from a nearby location.
In more detail
CDN stands for content delivery network. Serving from nearby cuts latency, and CDNs cache static assets such as scripts, fonts and images. Loading third-party scripts from a CDN also means trusting it, which is why Subresource Integrity exists.
Related terms
- Subresource Integrity — A browser check in which a script or stylesheet tag carries the expected hash of the file, and the browser refuses to use the file if it does not match.
- HTTP cache — A store that keeps HTTP responses and reuses them for later requests, following the rules the server sends in Cache-Control.
- latency — The time between asking for something and getting the answer back.
Taught in
- Critical Rendering Path: Preload, Prefetch And Scripts — Frontend Architecture & Web Platform
- Content Security Policy (CSP), Trusted Types And XSS Defenses — Frontend Architecture & Web Platform
- CSRF Mitigations, SameSite Cookies And Subresource Integrity — Frontend Architecture & Web Platform
- The Fetch API: Streaming Responses, HTTP Caching And Keepalive — Frontend Architecture & Web Platform
- Repositories You Configure By File — Red Hat Certified System Administrator (EX200) Exam Prep