A single ?utm_source= tag or reordered query parameter turns identical pages into cache misses. IETF’s No-Vary-Search header fixes this at the protocol level — but browsers and CDNs do not yet apply it uniformly.
Under classic HTTP caching rules, changing even one byte of a URL’s query string creates a completely separate cache key. That means marketing tags (?utm_source=..., ?gclid=...) or harmless parameter reordering quietly fragment both browser caches and prefetch pools. The IETF httpbis draft No-Vary-Search (draft-ietf-httpbis-no-vary-search) addresses this using strict HTTP Structured Fields syntax.
1. Exact No-Vary-Search Structured Fields directives
| Goal | Response header syntax | Cache matching behavior |
|---|---|---|
| Ignore parameter order | No-Vary-Search: key-order | ?a=1&b=2 and ?b=2&a=1 share one cache entry |
| Ignore specific tracking params | No-Vary-Search: params=("utm_source" "gclid") | Hits cache regardless of utm_source or gclid values |
| Allowlist only meaningful keys (safest) | No-Vary-Search: params, except=("q" "page") | Ignores every unknown parameter except q and page |
| Combined best practice | No-Vary-Search: key-order, params, except=("q" "page") | Maximizes hit rate across arbitrary referral tags |
2. Where browser support and CDN edges still diverge
- Browsers start with Speculation Rules: Chromium integrates
No-Vary-Searchfirst and foremost for Speculation Rulesprefetchandprerendermatching (for instance, serving a prefetched/itemwhen the user clicks/item?utm_medium=social), with full disk-cache rollout arriving incrementally. - CDNs often ignore origin No-Vary-Search: Many reverse proxies and edge CDNs do not automatically normalize edge cache keys from an origin
No-Vary-Searchheader. You must still align CDN query-string ignore rules explicitly. - Never widen cache keys on authenticated responses: Pair dynamic or user-specific pages with
Cache-Control: privateorno-store, and emitNo-Vary-Searchexclusively on public, statically equivalent URLs.


