Cache published documentation
Readers can retrieve fresh pages from cache while the publishing origin handles updates and cache misses.
Serve documentation pages, examples and downloads from the edge. Refresh navigation and search indexes with each release, and retain URLs for supported versions.
Cache the docs build at Cloud CDN. Purge on CI. Keep preview deployments off the public cache.
Readers can retrieve fresh pages from cache while the publishing origin handles updates and cache misses.
Client search JSON, fonts and screenshots are stored at the edge.
Each docs release invalidates HTML so new pages are live immediately.
Hugo, Docusaurus, MkDocs or any static output.
Long TTL for fingerprinted files, purgeable HTML.
After the build, invalidate the docs hostname HTML.
Attach TLS and cut over DNS.
Yes. Any static docs generator can be a Cloud CDN origin.
Cache each version path separately. Immutable old versions can use long TTLs.
Use token authentication or keep internal docs on a private origin that Cloud CDN does not cache publicly.
Cache the search index JSON like any other static asset.