Why refreshing your single page app gives a 404
8 min readHow the Web Works
Your routes work until someone reloads or opens a link directly. Here is why the server has never heard of that URL, and how to tell it what to do.
Category
Understand how the web works through practical guides covering HTTP, DNS, browsers, networking, caching and the technologies that power every website.
8 min readHow the Web Works
Your routes work until someone reloads or opens a link directly. Here is why the server has never heard of that URL, and how to tell it what to do.
9 min readHow the Web Works
The same request succeeds in Postman and fails in your app. Here is what the browser adds on top, and how to tell which of its rules you broke.
8 min readHow the Web Works
Your server sends the header but the browser stores nothing. Here are the reasons a cookie is silently dropped, and how to find which one is yours.
8 min readHow the Web Works
Three different things share the word session. Learn what each one stores, who can read it, and exactly what ends it.
19 min readHow the Web Works
What is a server? Learn how servers work, why the word means hardware or software, what the main server types do, and how machines become the cloud.
12 min readHow the Web Works
Before your browser can connect, it must find the site's IP address. Learn how a DNS lookup works step by step, from browser cache to authoritative server.
12 min readHow the Web Works
Every HTTP request carries headers describing who is asking and what they want. Learn the 7 request headers you will meet most often, with examples.
7 min readHow the Web Works
Domains are secondhand goods. Search engines, browsers and mail servers all keep long memories about names, and you inherit them at checkout.
6 min readHow the Web Works
DNS, TCP, TLS, HTML parsing, rendering: the journey from typing a URL to seeing the first pixel on screen.