Shared public GET responses
The edge can reuse a public JSON response when the request matches its cache key and the response is still fresh.
Set an explicit cache key and lifetime for public, read-only API responses. Bypass authentication-sensitive requests and forward writes to the application.
Cache safe GET responses at Cloud CDN with explicit TTLs. Bypass authenticated, mutation and user-specific APIs. Use Origin Shield and TLS at the edge.
The edge can reuse a public JSON response when the request matches its cache key and the response is still fresh.
When TTLs expire, edges do not all hit the API origin at once.
POST, PATCH, PUT and DELETE bypass cache. Tokens can protect private GETs.
Pull the existing API origin over HTTPS.
Set TTLs for public catalogue, config or content endpoints.
Authenticated JSON and writes must reach the application.
Invalidate API paths from the publish or deploy pipeline.
Only when the query is public and identical. Most GraphQL POSTs should bypass cache or use persisted GET queries you control.
Responses that vary on Authorization should not be cached as public. Bypass or use a carefully designed cache key.
No. Cloud CDN is a delivery and cache layer. AuthZ, rate limits and routing at the gateway remain in place.
Yes. WebSocket upgrades bypass cache. See CDN for WebSockets.