Conditional Request Headers Builder & Analyzer
Create any of ETag, Last-Modified, If-Match, If-None-Match, If-Range, If-Modified-Since and If-Unmodified-Since from one form, or paste a header block to check it. Validates entity-tag strengths, wildcards, IMF-fixdates and strong-comparison rules — all on your device.
🔒 100% Client-Side & Private — processed locally in your browser. Files never leave your device.
Options
Analyze a pasted block, or pick the header to build (and the value type to analyze).
A quoted entity-tag such as "v1-abc123" or W/"v1-abc123".
Changes the conditional response a server may send.
Your result will appear here
Type or paste your input above, adjust the options, then press Run. Tip: press Ctrl+Enter to run, and ? for every shortcut.
How it works
Building a full conditional-request set
Build mode generates any of the seven headers a conditional request can carry. Picking the target All emits every header that makes sense for a response and the request that follows it: an ETag or Last-Modified validator for the stored representation, then If-Match, If-None-Match, If-Range, If-Modified-Since and If-Unmodified-Since conditions built from that validator and the date. Each is produced in valid header syntax with correct quoting, so you can paste the block straight into a curl command or a test harness. Analyze mode takes the opposite direction and checks a pasted header block, and compare mode tells you whether two validators match.
The choice of validator and its strength
A validator is either an entity-tag or a date, and the strength of an entity-tag decides which conditions may use it. A strong tag, "abc", can back If-Match, If-Range and If-None-Match; a weak tag, W/"abc", only satisfies If-None-Match because it only asserts that two representations are semantically equivalent. The weak toggle emits a W/ prefix, the wildcard option replaces the tag with * for If-Match or If-None-Match, and the If-Range validator pick selects between a strong tag and an HTTP date, since If-Range refuses a weak tag because a range must map to the exact bytes of one representation.
How comparison decides a match
Compare mode checks two validators and reports whether they match under the comparison you choose. Weak comparison is what If-None-Match performs: it treats W/"abc" and "abc" as equal, because a weak tag is satisfied by any representation that is semantically the same. Strong comparison is what If-Match and If-Range require: both tags must be strong and their opaque values must match exactly. The request-method picker for If-None-Match matters because the conditional response differs by method — a GET or HEAD returns 304 Not Modified on a match, while a PUT would return 412 Precondition Failed.
What it validates and where it runs
The analyzer enforces the RFC 7232 grammar rather than guessing: entity-tags must be quoted with a valid strength prefix, a date must be an IMF-fixdate such as Wed, 21 Oct 2015 07:28:00 GMT, and the wildcard is only allowed where the spec permits it. The result is generated and checked purely from the text you type — nothing is hashed, fetched or requested, and the header block you paste is never sent anywhere, so the tool works offline as a reference for debugging cache and precondition behaviour.
Questions
What is the difference between weak and strong comparison?
Weak comparison treats W/"abc" and "abc" as equivalent, so it is used by If-None-Match. Strong comparison requires both tags to be strong and their opaque values to match exactly, which If-Match and If-Range need.
Which headers can use the wildcard *?
Only If-Match and If-None-Match accept *; it matches any current representation. ETag and If-Range must name a specific validator.
Why does If-Range reject weak tags?
A Range must map to the exact bytes of one representation, so If-Range requires a strong validator — a strong entity-tag or an IMF-fixdate.
Does this hash or fetch anything?
No. It only generates and validates header text from what you type; nothing is hashed, uploaded or requested.
Related tools
See category- Cache Headers Builder & Analyzer
- HTTP Range Header Builder & Parser
- HTTP Status Code Reference
- :nth-child An+B Evaluator
Cache Headers Builder & Analyzer
Build or analyze Cache-Control, CDN-Cache-Control, Surrogate-Control, Expires, Age, Cache-Status, and Vary.
HTTP Range Header Builder & Parser
Build or inspect byte-range request and response headers.
HTTP Status Code Reference
Look up HTTP status codes — what they mean and when APIs return them.
:nth-child An+B Evaluator
Parse CSS An+B (:nth-child, :nth-of-type) microsyntax, validate it, and list which child indices it matches.