Index

Free, with Google

Keep going, free.

A free account opens lessons 2 and 3 of every track, 33 more lessons, and keeps your progress and review cards on every device.

Start free with Google

A chalk plan

Open everything on chalk.

Every lesson, board, video, lab and paper, and the full review decks. Yearly is $39/year.

See plansStart free instead

Module 03 · Networking · Faster, private, everywhere · about 17 min to read

Play it as a journeyTutor comes with a plan

Caching across three hops: browser, CDN and origin

One Address A Thousand Doors
One Address A Thousand Doors · Open board

Many buildings answering to one address, so your request lands at the nearest one. This lesson is about what that nearest building keeps on its shelf.

Lesson 31 of 44 in Networking

The rest of this lesson is part of a plan.

A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.

See plansAlready a member? Sign in

Or start free: a free account opens lessons 2 and 3 of every track.

In this lesson

  • May 2010: a cache that had to choose
  • Three shelves between you and the head office
  • One header, two audiences: s-maxage
  • The oldest copy anyone can see
  • Cache key: how the branch decides two requests are the same
  • Stale-while-revalidate: Nottingham’s second choice
  • Purge: when waiting is too slow
  • A three-hop cache you can run
  • The rules each hop really follows
  • Directives you will meet
  • Vary and the explosion of keys
  • Purge, and why it is only half of freshness
  • Trade-offs

Terms it explains: browser cache, CDN, origin, shared caches, age, cache key, Vary, purge, fresh.

Lab

Move the split one bit and the street halves. How many machines fit, and how do they share one public address?

Drag How many doors this street has one notch, watch What fits, then press Next device to admit each one.

Open One address, many doors

Related paper

Review Networking