browse/

9 results
networks/cdns-why-a-far-away-server-feels-slow-and-how-copies-near-you-fix-it.md CDNs: why a far-away server feels slow, and how copies near you fix it Why does a website load instantly for you and slowly for someone on the other side of the world? The server is the same; the distance is… 6 min read · 1 Nov web/cors-why-a-browser-blocks-a-request-your-server-happily-answered.md CORS: why a browser blocks a request your server happily answered You call your own API from a web page and the browser says blocked by CORS policy, even though the address works in a new tab. The server… 5 min read · 29 Oct networks/diffie-hellman-how-two-strangers-agree-on-a-secret-while-everyone-list.md Diffie-Hellman: how two strangers agree on a secret while everyone listens How can a browser and a website that have never met agree on a secret key while everyone on the Wi-Fi is listening? The trick is… 5 min read · 20 Oct web/cookies-how-a-website-remembers-you-between-requests.md Cookies: how a website remembers you between requests The web forgets you after every request, so how does a site know you are still logged in? With a cookie: a small name and value the server… 4 min read · 16 Oct mobile/deep-links-why-one-link-opens-an-app-and-another-opens-a-web-page.md Deep links: why one link opens an app and another opens a web page Tap the same link on two phones and one opens an app while the other opens a web page. Who decides, and how? This article explains deep… 4 min read · 16 Oct web/http-requests-and-responses-what-a-404-and-a-301-really-say.md HTTP requests and responses: what a 404 and a 301 really say Every web page starts as two short pieces of plain text: a request from your browser and a response from a server. Learn to read them and… 4 min read · 10 Oct networks/latency-vs-bandwidth-why-a-faster-plan-can-t-speed-up-a-small-page.md Latency vs bandwidth: why a faster plan can't speed up a small page You upgraded to a much faster internet plan, yet a small web page loads just as slowly. Why? Network speed is two different numbers… 5 min read · 8 Oct web/what-is-json-edit-it-live-and-see-why-apis-are-so-strict-about-it.md What is JSON? Edit it live and see why APIs are so strict about it When an app asks a server for data, the reply has to travel as plain text. JSON is the format most web APIs use: six kinds of value… 5 min read · 4 Oct infrastructure/what-is-a-server-really-a-computer-that-waits-for-questions.md What is a server, really? A computer that waits for questions A server isn't a special kind of machine. It's an ordinary computer running a program that waits for someone to ask for something, then… 10 min read · 1 Oct