Two Hard Things: caching bugs · Part 8
You deployed. Your users didn't.
app.js is cached for a day, so the browser never asks for your fix, and a new index.html calling an old bundle gives a white screen. Fix: content hashes in filenames, cached for a year as immutable. Only index.html stays no-cache with an ETag.
Comment below: How do you bust your cache today?
Two Hard Things: a series on the caching bugs you already ship, and how to fix them. "There are only two hard things in computer science: cache invalidation and naming things." (Phil Karlton) All code is real TypeScript on Node, typechecked before it went on screen, and every claim was reproduced against real Redis and Postgres.




