Why it matters
A move from 85% to 95% hit ratio sounds small, but it cuts origin traffic by two thirds, because misses fall from 15% to 5%.
Seeing it in requests, gigabytes and pounds makes it easier to justify the work: longer TTLs, a cleaner cache key or an origin shield.
How to use it
- Type or paste your input; the example shows the format.
- Press Calculate. Results also update as you type.
- Read the summary line, then the table, notes or output below it.
- Copy or download what you need. Nothing leaves this page.
FAQ
Request hit ratio or byte hit ratio?
Request hit ratio counts requests served from cache; byte hit ratio counts bytes. Large files cached well can give a high byte ratio with a lower request ratio. This calculator uses request ratio with your average size.
How does TTL affect hit ratio?
For an object requested r times a second with a TTL of T seconds, roughly one request per TTL is a miss, so hit ratio ≈ rT ÷ (1 + rT). Popular objects cache well even with short TTLs; the long tail needs long TTLs.
What lowers hit ratio most?
Query strings like utm_ parameters in the cache key, Vary: User-Agent or Cookie, short or missing Cache-Control, and purging too often.
Is my input uploaded?
No. The tool runs in your browser and nothing you type, paste or open is sent anywhere.
Can I rely on the result?
It follows the public specification or formula named on this page and says where it simplifies. Check anything critical against the official tool or documentation before you ship it.