Distribute the public build directory
HTML and page-data files identify the bundles a page needs. Publish them together so visitors receive a consistent build.
Distribute Gatsby builds from a static origin. Publish the new asset set before updating cached HTML and page-data files that refer to it.
Pull the Gatsby public/ output through Cloud CDN. Cache hashed assets for a long time, purge HTML on each build, and optionally transform images at the edge.
HTML and page-data files identify the bundles a page needs. Publish them together so visitors receive a consistent build.
Cache Gatsby image output or replace some derivatives with edge transforms.
Each Gatsby build can purge HTML so new pages go live immediately.
Use any HTTPS origin Cloud CDN can pull — a files host or a static host.
Page-data and HTML get purgeable TTLs. Fingerprinted JS/CSS can live longer.
After gatsby build, purge HTML and page-data paths.
Map TLS and DNS once a test hostname is correct.
Yes. Cache the generated files. You can also serve some sizes via Cloud CDN image optimization.
Cache static routes. DSG/SSR paths should only be cached when the HTML is shareable.
Any HTTPS origin that serves the Gatsby build. Cloud CDN does not require a specific static host.
The shell HTML can be cached. Authenticated API calls from those routes stay dynamic.