designwithfocus

Page speed & performance

What Is an Image CDN? Delivery, Resize and Cache

By Design With Focus Team 6 min read
One source photo splitting into smaller cached copies at a network edge

Short answer

An image CDN stores and transforms images at the edge, using the request URL to pick size, format, and quality. web.dev describes that job as an API for the images on a site. The derived file can be cached separately from the original. A normal CDN that only caches bytes does not, by itself, resize the picture.

Last verified against the sources listed below.

Key takeaways

  • web.dev says an image CDN URL names the image and the transformations, such as size, format, and quality.
  • Cloudflare's transform URL shape is /cdn-cgi/image/OPTIONS/SOURCE, and the zone must enable it.
  • Fastly Image Optimizer caches the transformed image and, for newer services, enforces a 60-second minimum TTL on it.
  • MDN says Cache-Control max-age counts seconds since the response was generated, not since it was received.
  • no-store means caches should not keep the response. no-cache means they may store it but must revalidate.
  • web.dev's 2019 article says an image CDN can cut image file size by 40% to 80%. That figure is from that article.

A practical answer to what is an image CDN is a delivery service that also makes the picture. web.dev’s image CDN article, last updated 14 August 2019, says these services transform, optimize, and deliver images, and that you can think of them as APIs for the images on a site. The URL names the file and the options, such as size, format, and quality.

That article says switching can yield a 40% to 80% savings in image file size, and that the CDN usually beats a build-time script because it creates versions as they are requested. The percentage is that page’s claim from 2019, not a new measurement. Page speed still depends on more than the image host.

What is an image CDN?

An image CDN transforms images and delivers the result, usually from a URL that includes the options.

web.dev splits the market into self-managed and third-party. Self-managed means you run the optimizer. The article names Thumbor as open source and free to use.

Third-party means a vendor runs the optimizer and typically charges by usage, often with a free tier or a trial. The article lists cost, support, documentation, and ease of setup as the choice factors, and it does not rank a single winner.

The difference from a build script is timing. A script makes files before deploy. An image CDN makes a variant when a client asks for it, which web.dev says fits images that must be customized per client.

You still upload or point at an original. The CDN does not invent the photograph.

How do the URLs work?

The request URL carries the source image and the transformations the edge should apply.

Cloudflare’s transform-via-URL docs, updated 25 November 2026, use https://<ZONE>/cdn-cgi/image/<OPTIONS>/<SOURCE-IMAGE>. Options include quality, format, and size. The URL interface is off until you enable it for the zone or the Worker.

By default, source images come from the same zone. Other origins need an allowlist. Worker-scoped settings override the zone when both exist.

Fastly’s Image Optimizer reference says the service manipulates images as they pass through the Fastly network and caches the optimized versions. Its example query resizes to 300 pixels wide and crops to a 16:9 ratio, centered on the important content, including faces. Distinct widths become distinct cache objects. The origin request drops those query parameters, so the original is fetched once.

Imgix’s Rendering API overview describes itself as the reference for that API and for URL syntax. web.dev’s generic diagram matches the same idea: an origin (your domain or the vendor’s), the image (often the old URL embedded in the new one), an optional security key, and the transformation list. A security key, when enabled, stops other people from minting new variants by editing the URL.

What happens in the cache?

The transformed response is cached only when the cache headers allow it.

MDN’s Cache-Control page says the header carries directives for browsers and for shared caches such as proxies and CDNs. max-age=N means the response stays fresh until N seconds after it was generated on the origin, not N seconds after the browser received it. MDN’s sample value is 604800.

no-cache still allows storage, and it requires a revalidation before reuse. no-store tells every cache not to store the response.

Fastly’s rule is stricter than a generic header lesson. Image optimization runs only on cacheable responses. For services created on or after 2 May 2023, transformed images have a minimum TTL of 60 seconds, and the original image does not.

Cloudflare’s overview does not print that 60-second floor. Do not copy one vendor’s TTL onto the other.

If you send no-store on the image response, a shared cache is not supposed to keep the derivative. You then pay the transform on later requests that ask for the same options. That can be what you want for private images. It is a poor fit for a public product photo.

Which products document this job?

Cloudflare, Fastly, and Imgix each document a transform-on-request path, with different setup steps.

Source Job the page documents Figure the page prints
web.dev, 14 August 2019 Transform, optimize, and deliver from the URL 40% to 80% smaller image files
Cloudflare Images Resize and re-encode at the edge Free and Paid plans, no dollar price on the overview
Fastly Image Optimizer Transform on the network and cache the result 60-second minimum TTL on transformed images for services created on or after 2 May 2023
Imgix Rendering API Reference for the API and URL syntax No price on the overview

Cloudflare’s Images overview, also updated 25 November 2026, says you can resize, optimize, and manipulate images at the edge without storing a copy for every breakpoint. It lists two paths. Bring your own storage, including S3-compatible buckets such as R2, and transform those originals.

Or upload to Images and let Cloudflare store them. The overview says the product is available on Free and Paid plans. It does not print a dollar price on that page, so this article does not invent one.

Fastly documents Image Optimizer on its delivery network and, through SDKs, on the Compute platform as part of a beta. The reference says any request sent to Image Optimizer, including through the SDK, counts as a billable image request. Imgix documents the Rendering API as URL syntax for adjustments, plus separate video and management APIs on the same docs home.

web.dev’s 2019 piece is the general explanation. The vendor pages are the setup.

What should you fix before the first request?

Shrink the master, keep the URL stable, and do not make the largest image wait on a new origin.

Compress the file you upload so the origin object is already smaller. The Image Compressor does that in the browser before an image CDN caches a derivative. A transform can still resize and re-encode. It cannot recover detail you never had, and it should not be the only pass if the master is enormous.

web.dev flags three loading issues. A cross-origin image host adds a connection. fetchpriority="high" on the LCP image lets the browser start it earlier.

A preload helps when the URL is not in the first HTML. The same article warns that auto format selection can return a type that does not match the suffix in the URL. Trust Content-Type when you debug a saved file.

Pick the vendor from the docs you can actually follow: URL shape, cache rules, and whether a number is printed. The 40% to 80% line is a 2019 web.dev statement about file size. It is not a latency promise, and it is not a quota on your account.

Frequently asked questions

Does a regular CDN already do this?

A content delivery network can cache whatever file your origin sends. An image CDN, in web.dev's definition, also creates new versions when a request asks for them. Cloudflare Images documents resize and format options on the request URL. If your host only caches the file you uploaded, you still prepare each size yourself. The label CDN does not tell you which of those two jobs is included.

What is the Fastly 60-second rule?

Fastly's Image Optimizer reference says optimization applies only to cacheable responses. For services created on or after May 2, 2023, a minimum cache TTL of 60 seconds is enforced on transformed images. The same note says the original image is also cached and has no minimum TTL. That rule is Fastly's, for that product. It is not a number in the Cloudflare Images overview.

Why would the saved file's extension be wrong?

web.dev's image CDN article says the format in the URL, such as JPG in the example, might not be the format returned, such as WebP in that example. The content-type header tells the browser what it received. A person who saves the file and opens it in a program that trusts the extension can see the mismatch. The header, not the suffix, is the format signal.

What does Thumbor cost, according to web.dev?

web.dev's article, last updated 14 August 2019, calls Thumbor the most popular self-managed image CDN and says it is open source and free to use, with fewer features than most commercial CDNs. This guide did not open Thumbor's own site, so the price claim stays attached to that 2019 article. Third-party image CDNs, the same article says, are usually priced in usage tiers.

Should the LCP image use a high fetch priority?

web.dev's section on Largest Contentful Paint says to consider fetchpriority high on the LCP image so the browser can start it sooner. It also says a cross-origin image CDN can add a connection, and that proxying through the primary origin avoids an extra origin. If the image is not in the initial HTML, the same section points at a preload hint. Those are loading tactics, not a resize setting.

Sources