CDN for static sites

Serve your build from an HTTPS origin, cache fingerprinted files across releases and refresh HTML that points visitors to the latest version.

Example release policy
Versioned resource
/assets/site.507f.css
Refresh on publication
/index.html

Deploy a static site without stale entry pages

Use the static host as a Cloud CDN origin. Long-cache fingerprinted assets, purge HTML on deploy, and terminate TLS at the edge.

Every object next to the reader

Cloud CDN can reuse fresh HTML and asset responses and negotiate HTTP/3 with compatible clients.

Deploy, then purge

CI invalidates HTML so new builds are live without waiting on TTL.

The bucket is not public

Visitors hit Cloud CDN. Origin pull, TLS and DDoS mitigation sit in front.

Configuration

Cloud CDN overview
  1. Put the static files on an HTTPS origin

    A files host or static origin that Cloud CDN can pull.

  2. Cache by file type

    Long TTL for hashed JS/CSS. Purgeable TTL for HTML.

  3. Add purge to CI

    After each publish, purge HTML and any unhashed paths.

  4. Map the site domain

    Attach a managed or custom certificate and cut over DNS.

Operational outcomes

  • Fresh static responses can be served directly from edge caches
  • HTML can be purged on every build
  • The origin only answers misses
  • TLS and DDoS sit at the edge

Frequently asked questions

Which generators work?

Hugo, Astro, Eleventy, Jekyll, Vite static builds and any other HTML output. The CDN caches files, not the generator.

Can I use this instead of a static-host CDN?

Yes when you want independent purge, logs, image optimization or a multi-CDN design.

How do I handle 404s?

Configure the origin to return a 404 page. Cloud CDN will cache that according to policy.

Is Brotli available?

Yes. Cloud CDN supports Brotli and Gzip for eligible text assets.