Find Related products on Amazon

Shop on Amazon

Tower Defense: Cache Control

Published on: 2025-07-02 17:59:06

For those of you who landed here directly and missed my implausible intro, this isn’t a game. It’s something even better: an article about caching! I’ll describe the techniques used on my sites jasonthorsness.com and hn.unlurker.com. The latter is open-source so you can peruse the implementation. If you are looking to defend a meager budget with web-exposed side projects from an onslaught of web traffic you might find these approaches helpful. And if you are part of the problem, a user among countless others in your horde, driven en masse in wave after wave against my defenses — read on to scout my setup and find out whether or not it’s up to the challenge. The article progresses through three difficulty levels: Difficulty Level Description Easy Mostly-static sites Medium Data-driven dynamic sites Hard Authenticated per-user sites Easy: Mostly-Static Sites Static means the content is the same for every user and doesn’t change as a function of time. For example, due to my sluggis ... Read full article.