Zombie service workers

a tale from the cachekeeper

Service workers are a cool technology; they make it possible to build fully offline apps on the web by acting as a persistent cache. However, this also creates a tricky problem: cache invalidation. If a cache is not refreshed often enough, users will be served old files. I experienced this at work a few months ago; pushing changes to an internal web app sometimes had no effect. A hard refresh would fix the issue, but it was easy to forget if the change was subtle. [Read More]