Published frontend pages
Cached public pages can be served without querying Sanity again until they expire or are invalidated.
Set cache policy for pages built from published Sanity content. Use publication events to refresh affected URLs and keep draft previews outside the public cache.
Cache the Sanity-powered front end and images at Cloud CDN. Bypass Studio and preview. Purge when documents are published.
Cached public pages can be served without querying Sanity again until they expire or are invalidated.
Use one Sanity asset and create layout-specific variants at delivery time.
Editors work on Sanity. Readers hit Cloud CDN.
Pull the Next.js, Remix or static site that reads Sanity.
Bypass preview and draft mode. Cache published HTML and assets.
Map published document types to URLs and purge them.
Enable TLS and cut over DNS.
Prefer caching the front end. If you cache GROQ, exclude draft datasets and authenticated queries.
You can use Sanity as the image origin and still cache the result on Cloud CDN under your hostname.
Live preview must bypass cache. Only the public published hostname should be cached.
Yes. Protect non-public paths with Cloud CDN token authentication in addition to origin checks.