Hashed assets at every PoP
Use a long cache lifetime for build assets with versioned URLs. Set the font policy to match how the files are versioned.
Cache versioned Next.js bundles under /_next/static. Set a separate policy for rendered routes and bypass responses that depend on cookies or user identity.
Cache /_next/static aggressively. Cache ISR and anonymous SSR HTML at Cloud CDN with purge on deploy or revalidate. Bypass preview, draft mode and user-specific App Router responses.
Use a long cache lifetime for build assets with versioned URLs. Set the font policy to match how the files are versioned.
Anonymous pages can be cached in Cloud CDN so revalidate events rebuild once, not per region.
Use Cloud CDN image optimization for public imagery instead of making the Next.js origin resize every variant.
Pull the Node, container or hosting origin that serves the app over HTTPS.
Long TTL for hashed /_next/static. Shorter TTL plus purge for HTML and RSC payloads that can be shared.
Draft mode, preview tokens and authenticated App Router routes must not be cached.
Invalidate HTML when ISR revalidates or a production deploy goes live.
Use Cloud CDN when you host Next.js yourself, want an independent CDN, or run a multi-CDN design in front of the app origin.
Cache only responses that are identical for every anonymous visitor. Personalised RSC payloads must bypass cache.
If middleware sets shopper or session cookies on HTML, bypass cache for those routes or vary only on cache keys you fully control.
You can keep the Next optimizer as origin, or point public images at Cloud CDN transformation instead.