Start a project

Tool 320 of 450 · Caching

CDN Cache Hit Ratio Calculator

See what a better CDN cache hit ratio saves in origin requests, bandwidth and cost, and how TTLs move it.

CDN Cache Hit Ratio Calculator

Your input

Result

MeasureNowTargetChange

    01

    What it does

    See what a better CDN cache hit ratio saves in origin requests, bandwidth and cost, and how TTLs move it.

    • Origin requests, bandwidth and peak requests per second
    • Egress and per-request origin costs in £, $ or €
    • Average latency weighted by hits and misses
    • TTL model: the hit ratio a TTL can reach for your traffic

    02

    Private by design

    Everything happens in your browser. Nothing you type, paste or upload is sent anywhere, and it keeps working offline once the page has loaded.

    03

    What you get

    Origin load, bandwidth, cost and latency now vs target, with a Copy and a Download button on every result.

    • CDN
    • Caching
    • Cost

    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

    1. Type or paste your input; the example shows the format.
    2. Press Calculate. Results also update as you type.
    3. Read the summary line, then the table, notes or output below it.
    4. 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.

    Work with me

    Want a site that gets these right?

    I build fast, accessible websites and web apps that pass these checks from day one. Tell me about your project and I'll reply personally with honest next steps.

    All developer tools · Back to leej.uk