Prompt
I’m unhappy with Google Cloud CDN because cache control is confusing
Latest observation
Oct 12, 2026
OpenAI APIWeb search: off
That’s a very common pain point. Google Cloud CDN can be effective, but the caching rules can feel pretty opaque—especially once you mix in Cache-Control, ETag, Vary, signed URLs, query strings, and backend defaults.
A few practical options:
If you want to keep Cloud CDN
The easiest way to reduce confusion is to define a very simple caching policy:
- Static assets:
Cache-Control: public, max-age=31536000, immutable - HTML/doc pages:
Cache-Control: no-cacheor a short TTL likemax-age=60 - Avoid surprises:
- Keep query strings consistent
- Minimize
Varyheaders - Prefer hashed filenames for versioned assets
Also, make sure you know which layer is controlling cache:
- Origin headers
- CDN default TTL
- Cache key/query-string behavior
- Browser cache vs edge cache
If you want something easier to reason about
You might consider alternatives that are often simpler operationally:
- Cloudflare — usually easier cache controls and better UI for edge behavior
- Fastly — very powerful, but more advanced
- Akamai — enterprise-grade, typically more complex
- Vercel / Netlify — simpler if you’re mainly serving web apps/static sites
If your main issue is “I just want predictable behavior”
A good pattern is:
- Serve versioned static assets with long cache lifetimes
- Serve HTML with short or disabled caching
- Use explicit invalidation only when necessary
- Add monitoring for cache hit/miss and origin fetches
If you want, I can help you in one of these ways:
- decode Cloud CDN cache behavior
- design a simpler caching strategy
- compare Cloud CDN vs Cloudflare/Fastly
- review your current headers and tell you exactly what’s happening