Web Parcel Courier — Web Fundamentals

Help Mr. Jaya carry Dina's request to Tokoku: 10 levels, no code, on clients, servers, DNS, status codes, HTTPS, cookies, caching and CORS. For beginners.

What you learn in this game

Every time you open a website, two sides are at work. The browser on your phone asks, and it is called the client. The shop's computer at the end of the road answers, and it is called the server. Here Mr. Jaya carries Dina's request to Tokoku and brings the reply home. The order of steps you put together is his route.

The full address of a page is called a URL. Each piece has its own job: one names the shop, one points to a shelf, one says how it travels, and small notes are left for the clerk or for the page.

Computers send to each other by IP address, a row of numbers like 203.0.113.42, not by name. DNS is the internet's address book: it turns a name like www.tokoku.com into its IP address.

An address that starts with https:// means the letter is sealed before it sets off. People on the road can still see where it is going, but they can't read what is inside. Before sealing, the browser also checks the shop's ID card (the certificate), to be sure it is really talking to Tokoku.

A server does not remember anyone between two visits. So that you are still known, there is the cookie: a small note like a numbered ticket from the server, which lives in your browser. The real record stays in the server's book; the ticket only carries its number.

Fetching a page from a faraway server takes time. So the browser keeps a copy close by, called the cache. Every copy has an age: while it is fresh, the copy is used straight away; once it is stale, the browser first asks the server whether anything changed.