Compare
jsDelivr vs unpkg vs cdnjs in 2026: Which Free CDN Is Fastest
jsDelivr vs unpkg vs cdnjs in 2026: Fastest Free CDN Benchmark In our Q1 2026 measurements, jsDelivr delivered an 18 ms ...
A CDN service (content delivery network) is a distributed set of servers that caches and delivers web content — images, video segments, scripts, API responses — from locations physically close to each user, cutting round-trip latency and offloading traffic from the origin. As of 2026, a well-tuned CDN service serves 60–95% of a site's bytes from cache, which shrinks origin egress, absorbs traffic spikes, and typically pulls median page latency down by 100–300 ms for globally distributed audiences.

A CDN service intercepts requests for your content and answers them from the closest healthy cache node instead of your origin. The routing decision usually happens at DNS resolution or via anycast, steering the client to a node with low latency to their network. From there, the flow is a straightforward state machine .
On a cache hit, the node returns the stored object immediately. On a miss, the node fetches from origin (or an intermediate shield tier), stores the response according to its Cache-Control and ETag headers, then serves it. Subsequent requests within the freshness window are answered locally. Revalidation uses conditional requests (If-None-Match, If-Modified-Since) so a stale-but-unchanged object costs a 304 rather than a full transfer.
Modern CDN services terminate TLS at the edge, keep warm HTTP/2 and HTTP/3 connections to clients, and multiplex origin fetches over pooled connections. That connection reuse is often where the real latency win lives: the expensive handshake happens once, close to the user, not on every request across an intercontinental path.
A CDN service sits between the client and your origin, in front of load balancers and application servers. DNS points at the CDN; the CDN points at your origin. It is a caching and delivery layer, not a compute or storage system of record — although edge compute runtimes increasingly blur that line by running logic (auth checks, header rewrites, A/B routing) at the same nodes that serve cache.
CDN service vs. web host: A web host runs your application and holds the authoritative copy of your data. A CDN service holds cached copies and never replaces the origin. Turn off the host and the site dies; turn off the CDN and the site slows but keeps serving from origin.
CDN service vs. reverse proxy: A reverse proxy (nginx, Varnish, HAProxy) caches and routes at a single location you operate. A CDN service is a geographically distributed fleet of reverse proxies operated for you, with routing logic that picks the nearest node. A reverse proxy is one box; a CDN service is many, coordinated.
CDN service vs. load balancer: A load balancer distributes requests across backends for capacity and availability, usually within one region. A CDN service distributes cached content across the globe for proximity. They solve different axes — balance versus distance — and commonly run together.
Cache behavior is driven by origin headers. This nginx snippet marks static assets as immutable for a year and lets HTML revalidate frequently:
location ~* \.(js|css|woff2|png|jpg|webp)$ {
add_header Cache-Control "public, max-age=31536000, immutable";
}
location = /index.html {
add_header Cache-Control "public, max-age=60, stale-while-revalidate=300";
}
The immutable directive tells the CDN service and browsers never to revalidate hashed assets, while stale-while-revalidate lets the edge serve slightly stale HTML instantly and refresh in the background.
"A CDN service only helps with static files." Not anymore. With correct cache keys and short TTLs, a CDN service can cache API responses, personalized fragments via edge logic, and full HTML for anonymous traffic.
"A higher cache hit ratio is always better." Only if freshness holds. A 99% hit ratio that serves stale prices or stale auth tokens is a bug, not a win. Tune TTLs to the content's real volatility.
"CDN pricing is just per-gigabyte egress." Egress dominates, but request counts, TLS, and premium regions matter at scale. On the cost side, a modern CDN service can be strikingly cheap: BlazingCDN starts at $0.004 per GB (roughly $4 per TB) as of 2026, with committed enterprise volumes falling to $0.002 per GB — about $2 per TB at 2 PB and above — while holding a 100% uptime SLA and fault tolerance comparable to Amazon CloudFront. You can review the full tiers on the BlazingCDN CDN service pricing page.
A CDN service in 2026 typically costs between $0.002 and $0.09 per GB of egress, depending on vendor, region, and committed volume. Cost-optimized providers price entry traffic near $0.004 per GB and enterprise volumes near $0.002 per GB, while hyperscaler list rates run several times higher before negotiated discounts apply.
A CDN service still helps regional traffic by absorbing spikes, terminating TLS closer to users, and offloading repeated requests from origin. The latency gain is smaller than for global audiences, but the origin-offload and availability benefits — surviving a traffic surge without scaling backends — apply regardless of geography.
Yes. Multi-CDN setups route traffic across two or more providers using DNS or a steering layer, improving resilience and letting you shift load by price or performance. The cost is added operational complexity: you must reconcile cache behavior, purge across vendors, and monitor per-provider hit ratios separately.
A healthy CDN service hit ratio for static-heavy sites is 90% or higher; for dynamic or personalized workloads, 60–80% is realistic. The right target depends on content volatility. Measure it per content type rather than as a single number, since a low ratio on rarely-changed assets signals a TTL misconfiguration.
Pick your busiest asset path and run curl -I against it through your CDN service. Read the cache-status header (X-Cache, CF-Cache-Status, or Age) and confirm you see hits, not misses, on repeat requests. Then pull your hit ratio by content type from your logs and compare it to the 90% static / 60–80% dynamic benchmarks above. If HTML or API responses are missing more than expected, the fix is almost always in your origin Cache-Control headers, not the CDN. Instrument it, tune the TTLs, and re-measure.
Compare
jsDelivr vs unpkg vs cdnjs in 2026: Fastest Free CDN Benchmark In our Q1 2026 measurements, jsDelivr delivered an 18 ms ...
Compare
Imagine a bustling global marketplace where digital content flows as smoothly as traffic in a well-orchestrated city. ...
Learn
AWS CloudFront Pricing in 2026: Cost per TB Breakdown At 50 TB/month of egress from US edge locations, your AWS ...