What is a cache hit ratio, and what moves it?
Sketch your own answer first, then compare it with the one below.
A strong answer
It is the share of requests the cache answers without going to the origin. A higher ratio means less origin load and lower latency.
Three things move it most. A longer TTL lets each copy serve more requests. A cache key that holds only what changes the response lets requests share copies. Skewed traffic, where a few objects are very popular, gives caches more repeats to answer.
Spreading the same traffic over more caches lowers it, since each cache sees fewer repeats.
Sources
- Roy Fielding, Mark Nottingham, Julian Reschke (2022). RFC 9111: HTTP Caching.