Skip to content

Commit 349b42e

Browse files
committed
Add FAQ
1 parent 8b3db0a commit 349b42e

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

_posts/2026-05-07-better-browser-caching-with-no-vary-search.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,19 @@ date: 2026-05-07 21:31:40
55
categories: Web Development
66
main: ""
77
meta: "No-Vary-Search lets HTTP caches ignore irrelevant query parameters such as UTM tags, while still keeping meaningful ones like product variants in the cache key."
8+
faq:
9+
- question: "What is No-Vary-Search?"
10+
answer: "No-Vary-Search is an HTTP response header that tells caches which URL search parameters can be ignored when matching requests to cached responses."
11+
- question: "What problem does No-Vary-Search solve?"
12+
answer: "It reduces cache fragmentation caused by irrelevant query parameters such as UTM tags, so materially identical URLs can reuse the same cached response."
13+
- question: "When should I use No-Vary-Search?"
14+
answer: "Use it when some query parameters do not meaningfully change the response body, such as analytics, campaign, or other tracking parameters."
15+
- question: "When should I not use No-Vary-Search?"
16+
answer: "Do not use it for parameters that change the HTML or otherwise alter the response in a meaningful way, such as product variants or content filters rendered on the server."
17+
- question: "Can No-Vary-Search ignore all query parameters?"
18+
answer: "Yes. The params form can tell caches to ignore all search parameters, but it should only be used when the response truly does not vary by query string."
19+
- question: "Does No-Vary-Search affect debugging?"
20+
answer: "Yes. Appending a throwaway query string to try to bypass cache may no longer work if the document uses No-Vary-Search and the cache has been told those parameters do not matter."
821
---
922

1023
I’ve [written](/2019/03/cache-control-for-civilians/),

0 commit comments

Comments
 (0)