In this lesson · topic 4 of 7
Topic 4
A noisy key, a cold edge, a stale page
4 min read
Splitting one object into many
The cache key decides which requests share a copy. If it includes a value that changes for each user, such as a tracking parameter in the URL, one object becomes many entries. Each entry needs its own first miss.
In the lab, a tracking value with four variants cut the hit ratio from 65 percentmeasured to 42 percentmeasured. Origin requests rose from 1385measured to 2308measured. Users asked for the same things throughout. Only the key changed.
More edges, colder caches
Each edge has its own cache. Spread the same traffic over more edges and each one sees fewer repeats. With one edge the hit ratio was 86 percentmeasured. With eight it was 53 percentmeasured. Real networks pay this cost for being close to users, and it is one reason for a shield, which a later topic covers.
Old copies
A copy lives until its TTL ends, whatever happens at the origin. If you ship a fix and the old page is cached for a day, users keep seeing the old page. A shorter TTL narrows the window and moves load back to the origin. Purging removes the window without the load, and it is the subject of the next topic.