ETag precondition checker
Weakly compare an ETag with If-None-Match and inspect the precondition result for a request method.
The example value has been entered. Check it immediately or change the value.
Input is processed in the browser. Refreshing returns a sample value.
Instructions and example
If-None-Match uses weak comparison: matching quoted opaque values compare equal despite W/. Tag lists require commas. Methods are case-sensitive; only GET and HEAD use the 304 branch.
Current ETag "v2" matches the list "v1", "v2", yielding 304 for GET. The same condition yields 412 for POST.
Assumes a current representation exists. A match yields 304 for GET/HEAD and 412 otherwise; other HTTP preconditions are excluded.
Frequently asked questions
Can a tag with W/ match a strong tag?
If-None-Match uses weak comparison: matching quoted opaque values compare equal despite W/. Tag lists require commas. Methods are case-sensitive; only GET and HEAD use the 304 branch.
Does this handle absent resources or an additional If-Match?
Assumes a current representation exists. A match yields 304 for GET/HEAD and 412 otherwise; other HTTP preconditions are excluded.
Calculation criteria and reference materials
- RFC 9110 — HTTP Semantics
Assumes a current representation exists. A match yields 304 for GET/HEAD and 412 otherwise; other HTTP preconditions are excluded.
Verification of calculation criteria: · Calculation·verification principles · Report errors