How a web page gets from a name to a screen, and the browser rules that decide what a page may read. Short on time? Start with the quick revision page. Otherwise read the quick pages in order; each one links to its detailed version.
Reading order
- Quick revision: all of networking on one page, about 10 minutes.
- HTTP message: what a request and a response look like, methods and status codes. (detailed)
- Request lifecycle: what happens when you type a URL and press Enter. (detailed)
- DNS: turning
shop.cominto an IP address. (detailed) - TCP and UDP: the reliable connection, the three-way handshake, and when UDP is better. (detailed)
- TLS and HTTPS: encryption, certificates, and the handshake. (detailed)
- HTTP caching:
Cache-Control, ETags and 304. (detailed) - Origin and same-origin policy: scheme + host + port, and what the browser blocks. (detailed)
- CORS: how a server lets other origins read its replies. (detailed)