1. Introduction

Most bytes on the web are fetched more than once. A browser that holds a stylesheet, a CDN that holds a library bundle, a package mirror that holds an index file, or a coding agent that reread a project’s documentation an hour ago does not need the content again if it has not changed. HTTP’s conditional requests let the client say what it already has. If-None-Match carries the entity tags (ETags) of stored copies, and If-Modified-Since carries a date. The server answers 304 Not Modified with no content when the copy is still good. The other two preconditions protect writes and partial transfers. If-Match and If-Unmodified-Since ask the server to go ahead only if the representation is still the one the client saw, and to answer 412 Precondition Failed otherwise.

RFC 9110 [1] states these rules precisely. Section 8.8.3.2 defines two comparison functions. Strong comparison requires both tags to be strong and their opaque parts to be identical, and it is the one If-Match uses. Weak comparison ignores the W/ prefix, and If-None-Match uses it. Section 13.1 says when a recipient MUST ignore a precondition: If-Modified-Since when If-None-Match is present, when the value is not a valid HTTP-date, when it has more than one member, or when the resource has no modification date. If-Unmodified-Since is ignored when If-Match is present. A recipient must accept all three date formats (IMF-fixdate, the obsolete RFC 850 form and C’s asctime form). Section 13.2.2 fixes the order of evaluation: If-Match, then If-Unmodified-Since (origin servers only), then If-None-Match, then If-Modified-Since. Section 15.4.5 says a 304 MUST carry the ETag a 200 would have carried.

Static-file servers are where most applications meet these rules, because the framework’s static handler computes the validators and answers the preconditions for the developer. Frameworks differ in how they generate ETags (weak or strong, from size and modification time or from a content hash) and in which preconditions they evaluate at all. We ask: given byte-identical conditional requests for one unchanged file, do widely used static-file servers in four language ecosystems return the same status, and does that status match RFC 9110?

Our contributions are (1) a 54-case list in seven groups, each case with its RFC 9110 reading and a note where the RFC leaves the answer open; (2) a reproducible differential harness over fourteen server paths with pinned versions; (3) a per-case verdict matrix for every case (Appendix A); and (4) a two-pass sample of 32 public static URLs scored on the cases that also bind caches (Appendix B).

Differential testing [2] runs one input through several implementations and treats disagreement as a signal. Its strength here is that we do not depend on our own reading of the RFC to find a split. Wherever the fourteen servers disagree, at least one of them is out of line, and the RFC reading then says which. Where the RFC leaves the answer open, we report the split without scoring it.

The nearest test suite is the HTTP Caching Tests project (cache-tests.fyi) [3]. At the commit we read (3942fbf, 2026-11-17), its conditional-etag and conditional-lm files hold 22 and 8 tests. They cover how a cache answers If-None-Match and If-Modified-Since from a stored response, including precedence of If-None-Match over If-Modified-Since, list members, unquoted tags and RFC 850 dates. They test browsers, CDNs and proxies in front of a controlled origin. They do not test origin-side static-file libraries, they do not cover If-Match or If-Unmodified-Since (which RFC 9111 [4] says do not apply to caches), and they do not sample public deployments. Our local study is about origins. Our real-world sample overlaps the cache-tests questions only in the If-None-Match/If-Modified-Since cases, and it observes deployed edges rather than a lab configuration.

Measurement work on HTTP conformance has focused on intermediaries. Benhabbour, Attia and Dacier [12] tested 47 HTTP/1.1 requirement-level rules across twelve proxies and CDNs and found that the proxies behaved alike on only 7. Their follow-up [13] extended this to 156 HTTP/2 tests. Those suites ask whether a proxy forwards, rejects or rewrites non-conforming messages. They do not ask how an origin evaluates preconditions on a resource it serves. Single implementations have known issues. nginx issue #716 [6] reports that nginx’s If-Match matches identical weak tags under strong comparison, and the same source file [7] combines If-Modified-Since and If-None-Match with a logical AND. Linters such as REDbot [8] check one URL’s responses for conditional support but do not compare implementations. Our earlier Pubroot paper [5] applied a differential harness to the Range header on seven static-file servers. The present study adds a different header family, doubles the server set and adds a public sample. We found no published cross-implementation matrix of origin-side precondition evaluation.

3. Method

Subjects (default options, public APIs). Node.js v24.22.1: (1) Express 5.3.0 res.sendFile, which uses send 1.2.1, etag 1.8.1 and fresh 2.0.0; (2) @fastify/send 4.2.1; (3) sirv 3.0.2 with etag: true; (4) serve-handler 6.1.8 with etag: true. CPython 3.13.5: (5) Starlette 1.10.0 StaticFiles under uvicorn 0.54.0 (h11 0.16.0); (6) aiohttp 3.14.5 add_static; (7) Werkzeug 3.1.9 send_file on its development server; (8) Tornado 6.6.1 StaticFileHandler; (9) Falcon 4.4.0 ASGI add_static_route; (10) Django 6.1.3 django.views.static.serve, the view behind django.conf.urls.static, run as WSGI on Werkzeug’s server. Go 1.27.3: (11) net/http.ServeContent behind a handler that sets a strong ETag from size and modification time, the common pattern since ServeContent does not make one; (12) http.FileServer, which sets no ETag. Rust 1.85.1: (13) tower-http 0.6.11 ServeDir under axum 0.8.9; (14) actix-files 0.6.10 under actix-web 4.12.1.

All fourteen serve the same 100-byte file whose modification time is set to 2026-01-15 12:00:00 UTC, so every server’s Last-Modified reads Thu, 15 Jan 2026 12:00:00 GMT. On a plain GET, Express, @fastify/send and sirv send a weak ETag. serve-handler, Starlette, aiohttp, Werkzeug, Tornado, Falcon, Go ServeContent and actix-files send a strong one. Django, Go FileServer and tower-http send none. serve-handler sends no Last-Modified.

Cases. gen_cases.py writes 54 cases in seven groups. Two are baselines (GET and HEAD with no precondition). Thirteen test If-None-Match: the exact tag, its weak and strong forms, lists with and without spaces, *, two field lines, HEAD, trailing whitespace and an unquoted tag. Thirteen test If-Modified-Since: equal, later and earlier dates, the RFC 850 and asctime forms, an unparseable value, a date in 2100, the epoch, two dates in one field, and three non-conforming spellings. Four combine If-None-Match with If-Modified-Since. Seven test If-Match and six If-Unmodified-Since. Nine test precedence between them. Header templates are filled per server from the ETag it served: {E} is the tag as served, {EW} and {ES} its weak and strong forms, {EU} the bare opaque tag without quotes, and {X} the non-matching tag "zz-nomatch". A case that needs an ETag is n/a for servers that send none.

Reading. rfc.py encodes RFC 9110 for a GET or HEAD on an existing file. It applies the §13.2.2 order with strong comparison for If-Match and weak comparison for If-None-Match. A date precondition is ignored when its value is not exactly one HTTP-date in one of the three forms, and when the server sends no Last-Modified. The reading returns 200, 304 or 412, and it depends on whether the server’s ETag is weak or strong. Five cases are open. N09 sends an unquoted tag, which is not a valid entity-tag, and RFC 9110 does not say whether a malformed field is ignored or rejected. N12 is *, "zz-nomatch", which the grammar does not allow. M08, M12 and M13 send near-dates (UTC for GMT, lower case, trailing junk), which a strict parser treats as invalid and a lenient one accepts. One rule changed between specifications. RFC 2616 §14.25 called an If-Modified-Since later than the server’s clock invalid, and RFC 9110 dropped that sentence, so M07 (a date in 2100) reads as 304.

Classes (analyze.py). A agrees with the reading. M returns 200 where the reading is 304 (a missed revalidation). F returns 304 where the reading is 200 (a false “not modified”). P returns 200 or 304 where the reading is 412 (a precondition ignored). X returns 412 where the reading is 200 or 304. O is any other status. RFC 9110 says an origin server MUST evaluate If-Match, If-Unmodified-Since and If-None-Match, but only SHOULD evaluate If-Modified-Since. Section 13.1.3 also recognises origins that answer 304 only on an exact date match. We therefore report M on a valid If-Modified-Since date separately as a SHOULD-level miss; every other deviation is MUST-level. driver.py also checks each 304 for the ETag, a body and Content-Type.

Harness. run_all.sh builds the Go and Rust binaries (cargo build --locked), starts each server on its own localhost port in a new session, records the baseline GET, sends every case as a raw request over a fresh connection, and stops only the processes it started.

Reproduce.

git clone https://github.com/buildngrowsv/pubroot-pilots && cd pubroot-pilots
git checkout b00cca07b702378a62132f5d1c3377d4c67f073d
cd conditional-requests/js && npm ci && cd ..
python3 -m venv .venv && .venv/bin/pip install -r py/requirements.txt
PY=.venv/bin/python ./run_all.sh
python3 realworld/analyze_rw.py

Folder: https://github.com/buildngrowsv/pubroot-[REDACTED_SECRET]-requests/

Two runs in the working tree and two more from a git archive export of the commit, with fresh npm ci, pip install and cargo build --locked, produced byte-identical results/ files. analyze_rw.py rebuilds the real-world tables from the committed snapshot without network access.

4. Results

Status codes differed across servers on 36 of 54 cases. Of the 49 cases with a reading, 34 had at least one server deviate, and 15 were unanimous and correct. Class counts (A/M/F/P/X/O, with n/a for cases needing a missing ETag) were as follows. Express 44/0/0/5/0/0. @fastify/send 43/0/0/5/1/0. sirv 21/14/0/14/0/0. serve-handler 35/8/0/6/0/0. Starlette 37/1/1/10/0/0. aiohttp 47/1/1/0/0/0. Werkzeug 40/1/1/4/3/0. Tornado 38/0/1/10/0/0. Falcon 35/0/0/10/0/4. Django 20/3/1/7/0/0 (n/a 18). Go ServeContent 48/1/0/0/0/0. Go FileServer 31/0/0/0/0/0 (n/a 18). tower-http 22/3/1/4/1/0 (n/a 18). actix-files 48/0/0/0/1/0. Counting MUST-level deviations only, the servers range from none (Go FileServer) and one (Go ServeContent, actix-files) through two (aiohttp), five (Express) and six (@fastify/send) to 22 (sirv). The only SHOULD-level misses are sirv’s six: it does not evaluate If-Modified-Since at all. Pairwise, the two Go paths never differed where both applied, Express and @fastify/send differed on one case, and sirv or serve-handler differed from Werkzeug on 29.

The unanimous cases are the everyday ones. Every server answers a plain GET or HEAD with 200 and an exact matching If-None-Match with 304, including on HEAD and with trailing whitespace. Every server answers a non-matching tag with 200. Every server answers an If-Modified-Since one second before Last-Modified, or the epoch, with 200. An ordinary browser revalidation therefore works everywhere. The disagreements sit in the rules that only matter when a client, cache or agent sends something other than the single validator the server issued.

Strong comparison for If-Match (I01–I03, I06, P03). Express and @fastify/send send weak ETags, so strong comparison can never succeed: every If-Match that names a tag must fail with 412. Both instead accept If-Match: W/"…" and its strong spelling and return 200. The source shows why. send 1.2.1 fails the precondition only if match !== etag && match !== 'W/' + etag && 'W/' + match !== etag, which is a weak comparison, and @fastify/send 4.2.1 has the same test. sirv does not evaluate If-Match at all, so it also returns 200. This is the same class of bug as nginx #716, now in the two most used Node static paths. A client that uses If-Match to guard against a changed file gets no protection.

Exact-string If-None-Match (N02–N07, N10, N13, C04). sirv compares the whole If-None-Match value to its ETag with ===, and serve-handler does the same with ===. A list ("zz-nomatch", W/"…"), *, the other weak/strong spelling or a second field line therefore misses, and the server sends the full body again. sirv also misses N03, the strong spelling of its weak tag. serve-handler misses N02, the weak spelling of its strong tag. Both are weak matches that RFC 9110 requires to succeed. These are missed revalidations, not wrong content, but RFC 9110 says an origin MUST evaluate If-None-Match. Caches that merge their stored tags into one list, as RFC 9111 §4.3.2 permits, will never get a 304 from these servers.

Two field lines (N10). Splitting a list across two If-None-Match lines is equivalent to one comma-separated line (RFC 9110 §5.3). Starlette, aiohttp and Go ServeContent read only the first line, which holds the non-matching tag, and return 200. sirv and serve-handler miss it as above. Werkzeug, Tornado, Falcon, Express, @fastify/send and actix-files combine the lines and return 304.

If-None-Match versus If-Modified-Since (C01, C04). RFC 9110 says a recipient MUST ignore If-Modified-Since when If-None-Match is present. Django and tower-http send no ETag, so a non-matching If-None-Match should yield 200. Both instead evaluate the date and return 304 for C01 (If-None-Match: "zz-nomatch" with a later If-Modified-Since). A client that changed its mind about the tag still gets “not modified” (F). With If-None-Match: * and an older date (C04), the reading is 304, because the file exists. sirv, serve-handler, Django and tower-http return 200; Django and tower-http also miss * alone (N07).

Ignored preconditions (I03–I07, U03, U05, P02, P07–P09). Starlette, Tornado, Falcon and Django ignore If-Match and If-Unmodified-Since entirely. serve-handler and tower-http ignore If-Match, and sirv ignores both. A request whose If-Match names a different tag (I04) gets 200 from seven of the fourteen. Werkzeug evaluates If-Match but has no code path for If-Unmodified-Since, so six servers ignore that header. Of the Python servers, only aiohttp evaluates both. Express, @fastify/send, aiohttp, both Go paths, tower-http and actix-files evaluate If-Unmodified-Since correctly. Go FileServer sends no ETag but still evaluates If-Match, and it correctly fails a named tag with 412, which is the right answer when the server has no tag.

Order of evaluation (P01, P03, P04, P06). If-Unmodified-Since must be checked before If-None-Match. With an older If-Unmodified-Since and a matching If-None-Match (P04), the reading is 412. Express, @fastify/send, aiohttp, Go ServeContent and actix-files return 412, while Starlette, Werkzeug, Tornado, Falcon and sirv return 304. With If-Match: * and an older If-Unmodified-Since (P01), the date must be ignored because If-Match is present. @fastify/send, Werkzeug, tower-http and actix-files evaluate it anyway and return 412. Werkzeug also returns 412 to If-Match: * alone (I05) and to If-Match: * with If-None-Match: * (P06). Its is_resource_modified checks If-Match with ETags.is_strong, which ignores the * member, so If-Match: * counts as a failed match, and make_conditional then answers 412. With If-Match carrying the strong form of a weak tag together with a matching If-None-Match (P03), the reading for weak-tag servers is 412. Express, @fastify/send and sirv return 304.

Dates (M04–M07, M11, M08, M12, M13). RFC 9110 requires recipients to accept RFC 850 and asctime dates. Falcon rejects both (M04, M05) with 400, as it does an unparseable value (M06) and a two-date value (M11), where the reading is to ignore the field and answer 200. The two-date value M11 is the sharper split. Starlette, aiohttp, Werkzeug and Tornado parse the first date and answer 304, although RFC 9110 says a value with more than one member MUST be ignored. The three open near-dates split the servers into camps. Express, @fastify/send, Starlette, aiohttp, Werkzeug and Tornado accept UTC for GMT, lower-case names and trailing junk, and answer 304. Falcon accepts lower case and answers 400 to the other two. The Go, Rust and Django paths treat all three as invalid and answer 200, and sirv and serve-handler do not evaluate dates here. M07, a date in 2100, gives 304 everywhere that evaluates dates. RFC 9110 does not forbid future dates, so this matches the current reading but not RFC 2616’s.

304 metadata. sirv’s 9 and serve-handler’s 9 responses with status 304 carried no ETag header. RFC 9110 §15.4.5 says the server MUST send it, because a cache uses it to pick which stored response to refresh. actix-files sent Content-Type on all 21 of its 304s, which §15.4.5 says SHOULD NOT be sent. No 304 had a body, and every Content-Length on a 304 was absent or matched the 200. The other eleven servers’ 304s were clean.

5. Real-world sample

Local defaults are not the whole story, since many sites put a CDN or a tuned web server in front. On 2026-11-20 we took 40 public static URLs from CDNs and project websites (Appendix B lists them) and sent each a plain GET followed by 20 conditional requests, 0.3 s apart, with Accept-Encoding: identity and a User-Agent naming the study. We ran the whole sample twice, five minutes apart. Date-valued cases were rebased onto each URL’s own Last-Modified, keeping their offset and their date form. We kept only status codes and whether each response carried the same ETag; no bodies or cookies were stored. Seven URLs answered with a redirect or 404 and were dropped. We also excluded jsDelivr, whose ETag differed between plain GETs and whose statuses differed between passes, because its edge nodes evidently hold different tags. That left 32 URLs, whose statuses were identical in both passes.

We score only the If-None-Match and If-Modified-Since cases (16). RFC 9110 steps 3–4 bind caches and origins alike, whereas If-Match and If-Unmodified-Since apply only to the origin, and a request answered at an edge may or may not have reached it. The If-Match and If-Unmodified-Since statuses are kept as information in Appendix B. For caches, RFC 9111 §4.3.2 says a cache SHOULD evaluate the preconditions, so an M at an edge is a missed saving rather than a broken rule. An F is a wrong answer at any recipient.

31 of 32 sites deviated on at least one scored case. That headline is driven by three cases, so we break it down. Two dates in If-Modified-Since (M11): 20 of 27 sites with Last-Modified answered 304 (F), including the hosts whose Server header names nginx or Apache, plus GitHub Pages, Google’s static hosts, AWS, Apple and crates.io. Only the w3.org edge, the Wikimedia ATS hosts, PostgreSQL’s site, Next.js’s host and unpkg/cdnjs ignored the field. A date in 2100 (M07): 13 sites answered 200, consistent with nginx’s default if_modified_since exact and similar exact-match policies, which §13.1.3 explicitly anticipates; we report but discount these. Two If-None-Match lines (N10): only 4 of 25 sites with a usable ETag combined them. 16 read one line and answered 200, and 5 (rfc-editor.org, nginx.org, w3.org, cloudflare.com, php.net) rejected the request with 400 Bad Request. Ignoring these three cases, 16 of 32 sites still deviated.

The largest remaining split is C04: 15 of 27 sites answered 200 to If-None-Match: * combined with an older If-Modified-Since, where RFC 9110 says to ignore the date and answer 304. nginx’s not-modified filter [7] shows the mechanism: it returns the full response if If-Modified-Since says modified, before it looks at If-None-Match, so the two validators are combined with AND rather than by precedence. The hosts that do this (nginx.org, Debian, GNU, AWS, Apple, Microsoft Learn, Next.js, PHP, PostgreSQL, SQLite, Wikipedia, Wikimedia upload, unpkg, cdnjs) span several server brands, so the AND pattern is not only nginx’s. C01, the opposite combination, was answered correctly everywhere except SQLite’s site, so in practice the AND pattern costs revalidations but rarely produces a wrong 304. Three sites (Microsoft Learn, Next.js on Vercel, cloudflare.com) never answered 304 to any If-None-Match, even with the exact tag, although they sent an ETag. postgresql.org, sqlite.org and wikipedia.org matched the exact tag but missed lists or *. rfc-editor.org (behind Cloudflare) answered 304 with a different ETag from the one requested and the one it served on 200. The informational If-Match columns show that most nginx- and Apache-fronted sites evaluate it, returning 412 for the weak form and for a foreign tag. Cloudflare-served w3.org and rfc-editor.org, Wikipedia and PostgreSQL returned 200 to every If-Match.

6. Implications (hypotheses)

Hypothesis: a client or agent that sends one validator exactly as received (If-None-Match with the served tag, or If-Modified-Since with the served Last-Modified) gets correct answers from all fourteen libraries and from every stable site we sampled. Every split we measured needs a second validator, a list, *, a reformatted tag or a reformatted date. Hypothesis: optimistic-concurrency designs that rely on If-Match against a static or file-backed resource are unsafe behind seven of the fourteen libraries, which ignore the header, and behind Express and @fastify/send, which compare weakly. An agent that writes back a file it read could silently overwrite a concurrent change. Hypothesis: caches that merge their stored tags into one If-None-Match list, or that send both If-None-Match and If-Modified-Since, lose revalidations against sirv and serve-handler origins and against AND-combining edges. The cost is bandwidth, not correctness. Hypothesis: the missing ETag on sirv’s and serve-handler’s 304s prevents a cache holding several variants from knowing which one to refresh. We did not test any cache or agent behaviour directly.

7. Threats to validity

  • Synthetic cases. All 54 cases are ours. They show which behaviours differ, not how often clients send them. The real-world sample shows that two-date and combined validators meet deployed servers, but not how often real clients send them.
  • Readings. The reference is our reading of RFC 9110. Five cases are open and unscored. M07 depends on the RFC 9110 change from RFC 2616. The raw statuses in results/ and realworld/ do not depend on our classes.
  • Default options, one file. Each library ran with its defaults and one 100-byte file. Options exist that change answers, such as ETag generation in sirv and serve-handler, Werkzeug’s conditional, and Go handlers that compute their own tags. Directory listings, compression, and errors other than 404 were not tested.
  • Origin versus cache in the sample. For public URLs we cannot see whether an edge or the origin answered, so we score only the cases that bind both. Server and infrastructure headers are self-reported and can be wrong. Hosts can change their configuration at any time, and the sample is two passes on one day from one network location.
  • Versions. One version per library; minor releases may change these results. We checked the cited source lines against the installed versions.

8. Conclusion

Fourteen static-file servers agree on the everyday revalidation, a single matching tag or a single unchanged date, and disagree on 34 of 49 scored cases once a request carries a list, *, a second validator, a weak/strong mismatch, an older date format or a two-date value. The splits follow RFC 9110 rules that are stated explicitly: strong comparison for If-Match, weak comparison for If-None-Match, ignoring If-Modified-Since when If-None-Match is present, ignoring malformed and multi-member dates, evaluating If-Unmodified-Since before If-None-Match, and sending the ETag on a 304. Only Go’s FileServer had no deviation, and it sends no ETag. Public sites show the same patterns, most visibly the AND-combination of validators and the acceptance of two-date values. Clients and agents should send one validator exactly as served. Library maintainers can use the case list in Appendix A as a regression suite.

Appendix A. Full case list and verdict matrix

Abbreviations: Exp = Express (send), fSend = @fastify/send, s-h = serve-handler, Starl = Starlette, aioh = aiohttp, Werkz = Werkzeug, Torn = Tornado, Falc = Falcon, Djan = Django, Go SC = Go ServeContent, Go FS = Go FileServer, tower = tower-http, actix = actix-files. {E} is the ETag as served, {EW}/{ES} its weak/strong form, {EU} the unquoted opaque tag, {X} = "zz-nomatch". Several headers in a cell are separated by ;, and repeated names are separate field lines. Cells: ✓ = agrees with the reading; M 200, F 304, P 200/P 304, X 412, O 400 = class and status; n/a = needs an ETag the server does not send; bare status = open case. The reading column assumes a server that sends Last-Modified; “(s)/(w)” gives the reading for a strong and a weak server ETag. serve-handler sends no Last-Modified, so its date preconditions read as ignored, and its ✓ on M01–M10 means 200.

Unanimous cases (every server agrees with the reading or is n/a): B01 (none) (GET) → 200; B02 (none) (HEAD) → 200; N01 If-None-Match: {E} (GET) → 304; N04 If-None-Match: {X} (GET) → 200; N08 If-None-Match: {E} (GET) → 304; N11 If-None-Match: {E} (HEAD) → 304; M03 If-Modified-Since: Thu, 15 Jan 2026 11:59:59 GMT (GET) → 200; M09 If-Modified-Since: Thu, 01 Jan 1970 00:00:00 GMT (GET) → 200; C02 If-None-Match: {E}; If-Modified-Since: Thu, 15 Jan 2026 11:59:59 GMT (GET) → 304; C03 If-None-Match: {X}; If-Modified-Since: yesterday (GET) → 200; U01 If-Unmodified-Since: Thu, 15 Jan 2026 12:00:00 GMT (GET) → 200; U02 If-Unmodified-Since: Thu, 15 Jan 2026 13:00:00 GMT (GET) → 200; U04 If-Unmodified-Since: yesterday (GET) → 200; U06 If-Unmodified-Since: Thu Jan 15 12:00:00 2026 (GET) → 200; P05 If-Unmodified-Since: Thu, 15 Jan 2026 13:00:00 GMT; If-None-Match: {E} (GET) → 304.

Disagreeing cases, including the five open cases:

#Request headersRFC 9110 readingExpfSendsirvs-hStarlaiohWerkzTornFalcDjanGo SCGo FStoweractix
N02If-None-Match: {EW}304✓✓✓M 200✓✓✓✓✓n/a✓n/an/a✓
N03If-None-Match: {ES}304✓✓M 200✓✓✓✓✓✓n/a✓n/an/a✓
N05If-None-Match: {X}, {E}304✓✓M 200M 200✓✓✓✓✓n/a✓n/an/a✓
N06If-None-Match: {X},{E}304✓✓M 200M 200✓✓✓✓✓n/a✓n/an/a✓
N07If-None-Match: *304✓✓M 200M 200✓✓✓✓✓M 200✓✓M 200✓
N09If-None-Match: {EU}open200200200200200200304200304n/a200n/an/a200
N10If-None-Match: {X}; If-None-Match: {E}304✓✓M 200M 200M 200M 200✓✓✓n/aM 200n/an/a✓
N12If-None-Match: *, {X}open200200200200200200200304200200304304200200
N13If-None-Match: {EW}, {X}304✓✓M 200M 200✓✓✓✓✓n/a✓n/an/a✓
M01If-Modified-Since: Thu, 15 Jan 2026 12:00:00 GMT304✓✓M 200✓✓✓✓✓✓✓✓✓✓✓
M02If-Modified-Since: Thu, 15 Jan 2026 13:00:00 GMT304✓✓M 200✓✓✓✓✓✓✓✓✓✓✓
M04If-Modified-Since: Thursday, 15-Jan-26 12:00:00 GMT304✓✓M 200✓✓✓✓✓O 400✓✓✓✓✓
M05If-Modified-Since: Thu Jan 15 12:00:00 2026304✓✓M 200✓✓✓✓✓O 400✓✓✓✓✓
M06If-Modified-Since: yesterday200✓✓✓✓✓✓✓✓O 400✓✓✓✓✓
M07If-Modified-Since: Fri, 01 Jan 2100 00:00:00 GMT304✓✓M 200✓✓✓✓✓✓✓✓✓✓✓
M08If-Modified-Since: Thu, 15 Jan 2026 12:00:00 UTCopen304304200200304304304304400200200200200200
M10If-Modified-Since: Thu, 15 Jan 2026 13:00:00 GMT (HEAD)304✓✓M 200✓✓✓✓✓✓✓✓✓✓✓
M11If-Modified-Since: Thu, 15 Jan 2026 12:00:00 GMT, Thu, 15 Jan 2026 12:00:00 GMT200✓✓✓✓F 304F 304F 304F 304O 400✓✓✓✓✓
M12If-Modified-Since: thu, 15 jan 2026 12:00:00 gmtopen304304200200304304304304304200200200200200
M13If-Modified-Since: Thu, 15 Jan 2026 12:00:00 GMT junkopen304304200200304304304304400200200200200200
C01If-None-Match: {X}; If-Modified-Since: Thu, 15 Jan 2026 13:00:00 GMT200✓✓✓✓✓✓✓✓✓F 304✓✓F 304✓
C04If-None-Match: *; If-Modified-Since: Thu, 15 Jan 2026 11:59:59 GMT304✓✓M 200M 200✓✓✓✓✓M 200✓✓M 200✓
I01If-Match: {E}200 (s) / 412 (w)P 200P 200P 200✓✓✓✓✓✓n/a✓n/an/a✓
I02If-Match: {ES}200 (s) / 412 (w)P 200P 200P 200✓✓✓✓✓✓n/a✓n/an/a✓
I03If-Match: {EW}412P 200P 200P 200P 200P 200✓✓P 200P 200n/a✓n/an/a✓
I04If-Match: {X}412✓✓P 200P 200P 200✓✓P 200P 200P 200✓✓P 200✓
I05If-Match: *200✓✓✓✓✓✓X 412✓✓✓✓✓✓✓
I06If-Match: {X}, {ES}200 (s) / 412 (w)P 200P 200P 200✓✓✓✓✓✓n/a✓n/an/a✓
I07If-Match: {X} (HEAD)412✓✓P 200P 200P 200✓✓P 200P 200P 200✓✓P 200✓
U03If-Unmodified-Since: Thu, 15 Jan 2026 11:59:59 GMT412✓✓P 200✓P 200✓P 200P 200P 200P 200✓✓✓✓
U05If-Unmodified-Since: Wednesday, 14-Jan-26 12:00:00 GMT412✓✓P 200✓P 200✓P 200P 200P 200P 200✓✓✓✓
P01If-Match: *; If-Unmodified-Since: Thu, 15 Jan 2026 11:59:59 GMT200✓X 412✓✓✓✓X 412✓✓✓✓✓X 412X 412
P02If-Match: {X}; If-Unmodified-Since: Thu, 15 Jan 2026 13:00:00 GMT412✓✓P 200P 200P 200✓✓P 200P 200P 200✓✓P 200✓
P03If-Match: {ES}; If-None-Match: {E}304 (s) / 412 (w)P 304P 304P 304✓✓✓M 200✓✓n/a✓n/an/a✓
P04If-Unmodified-Since: Thu, 15 Jan 2026 11:59:59 GMT; If-None-Match: {E}412✓✓P 304✓P 304✓P 304P 304P 304n/a✓n/an/a✓
P06If-Match: *; If-None-Match: *304✓✓M 200M 200✓✓X 412✓✓M 200✓✓M 200✓
P07If-Unmodified-Since: Thu, 15 Jan 2026 11:59:59 GMT; If-Modified-Since: Thu, 15 Jan 2026 13:00:00 GMT412✓✓P 200✓P 304✓P 304P 304P 304P 304✓✓✓✓
P08If-Match: {X}; If-Modified-Since: Thu, 15 Jan 2026 13:00:00 GMT412✓✓P 200P 200P 304✓✓P 304P 304P 304✓✓P 304✓
P09If-Match: {X}; If-None-Match: {E}412✓✓P 304P 304P 304✓✓P 304P 304n/a✓n/an/a✓

Appendix B. Real-world sample

URLs probed (40): https://cdn.jsdelivr.net/npm/jquery@3.7.1/dist/jquery.min.js, https://unpkg.com/react@18.3.1/umd/react.production.min.js, https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js, https://code.jquery.com/jquery-3.7.1.min.js, https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js, https://raw.githubusercontent.com/github/gitignore/main/Python.gitignore, https://pages.github.com/, https://www.python.org/static/favicon.ico, https://docs.python.org/3/_static/py.svg, https://www.rfc-editor.org/rfc/rfc2397.txt, https://nginx.org/favicon.ico, https://httpd.apache.org/favicon.ico, https://www.debian.org/favicon.ico, https://upload.wikimedia.org/wikipedia/commons/6/63/Wikipedia-logo.png, https://www.w3.org/favicon.ico, https://developer.mozilla.org/favicon.ico, https://go.dev/images/favicon-gopher.png, https://www.cloudflare.com/favicon.ico, https://www.fastly.com/favicon.ico, https://aws.amazon.com/favicon.ico, https://learn.microsoft.com/favicon.ico, https://www.apple.com/favicon.ico, https://nextjs.org/favicon.ico, https://www.netlify.com/favicon.ico, https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu4mxK.woff2, https://crates.io/favicon.ico, https://www.rust-lang.org/static/images/favicon-32x32.png, https://nodejs.org/favicon.ico, https://www.gnu.org/graphics/heckert_gnu.transp.small.png, https://ftp.gnu.org/gnu/hello/hello-2.12.tar.gz.sig, https://www.kernel.org/favicon.ico, https://www.djangoproject.com/favicon.ico, https://www.php.net/favicon.ico, https://www.postgresql.org/favicon.ico, https://www.openssl.org/favicon.ico, https://curl.se/favicon.ico, https://www.sqlite.org/favicon.ico, https://www.gitlab.com/favicon.ico, https://ubuntu.com/favicon.ico, https://www.wikipedia.org/static/favicon/wikipedia.ico.

Dropped (redirect or 404): https://www.netlify.com/favicon.ico (301); https://www.rust-lang.org/static/images/favicon-32x32.png (301); https://nodejs.org/favicon.ico (307); https://www.kernel.org/favicon.ico (404); https://www.openssl.org/favicon.ico (404); https://www.gitlab.com/favicon.ico (308); https://ubuntu.com/favicon.ico (404). Excluded as unstable: cdn.jsdelivr.net.

Scored cells per site (A agree, M 200 where 304, F 304 where 200, O other status, - not applicable: no usable ETag or no Last-Modified), then the informational If-Match/If-Unmodified-Since statuses (I01 exact tag, I03 weak form, I04 other tag, U03 one second before Last-Modified). Case meanings as in Appendix A, with dates rebased to each site’s Last-Modified.

host | server | etag | LM | N01 N02 N03 N05 N06 N07 N10 N13 M01 M03 M04 M05 M07 M11 C01 C04 | info I01 I03 I04 U03
unpkg.com | cloudflare | none | y | - - - - - M - - M A M M M A A M | n/a n/a 200 200
cdnjs.cloudflare.com | cloudflare | none | y | - - - - - M - - A A A A A A A M | n/a n/a 200 200
code.jquery.com | nginx | strong | y | A A A A A A M A A A A A A F A A | 200 412 412 412
ajax.googleapis.com | sffe | none | y | - - - - - A - - A A A A A F A A | n/a n/a 200 200
raw.githubusercontent.com | None | strong | n | A A A A A A M A - - - - - - - - | 200 412 412 n/a
pages.github.com | GitHub.com | strong | y | A A A A A A M A A A A A A F A A | 200 412 412 412
www.python.org | nginx | strong | y | A A A A A A M A A A A A A F A A | 200 412 412 412
docs.python.org | nginx | strong | y | A A A A A A M A A A A A A F A A | 200 412 412 412
www.rfc-editor.org | cloudflare | weak | n | A A A A A A O A - - - - - - - - | 200 200 200 n/a | other ETag in 7
nginx.org | nginx/1.31.8 | strong | y | A A A A A A O A A A A A M F A M | 200 412 412 412
httpd.apache.org | Apache | strong | y | A A A A A A M A A A A A A F A A | 200 412 412 412
www.debian.org | Apache | strong | y | A A A A A A A A A A A A M F A M | 200 412 412 412
upload.wikimedia.org | ATS/9.2.16 | malformed | y | - - - - - M - - A A A A M A A M | n/a n/a 200 200
www.w3.org | cloudflare | strong | y | A A A A A A O A A A A A A A A A | 200 200 200 200
developer.mozilla.org | Google Frontend | strong | y | A A A A A A M A A A A A A F A A | 200 412 412 412
go.dev | Google Frontend | none | n | - - - - - A - - - - - - - - - - | n/a n/a 412 n/a
www.cloudflare.com | cloudflare | strong | n | M M M M M M O M - - - - - - - - | 200 200 200 n/a
www.fastly.com | Artisanal bits | strong | n | A A A A A A M A - - - - - - - - | 200 412 412 n/a
aws.amazon.com | Server | strong | y | A A A A A A M A A A A A M F A M | 200 412 412 412
learn.microsoft.com | None | weak | y | M M M M M M M M A A A A M F A M | 200 200 200 412
www.apple.com | Apple | none | y | - - - - - M - - A A A A M F A M | n/a n/a 200 412
nextjs.org | Vercel | strong | y | M M M M M M M M M A M M M A A M | 200 412 412 412
fonts.gstatic.com | sffe | none | y | - - - - - A - - A A A A A F A A | n/a n/a 200 200
crates.io | Heroku | strong | y | A A A A A A M A A A A A A F A A | 200 412 412 412
www.gnu.org | Apache | strong | y | A A A A A A A A A A A A M F A M | 200 412 412 412
ftp.gnu.org | Apache/2.4.52 (Trisquel_GNU/Linux) | strong | y | A A A A A A A A A A A A M F A M | 200 412 412 412
www.djangoproject.com | nginx | strong | y | A A A A A A M A A A A A A F A A | 200 412 412 412
www.php.net | BunnyCDN-ASB1-1503 | weak | y | A A A A A A O A A A A A M F A M | 200 200 412 412
www.postgresql.org | nginx | strong | y | A A A M M M M M A A A A M A A M | 200 200 200 200
curl.se | nginx/1.31.3 | strong | y | A A A A A A M A A A A A A F A A | 200 412 412 412
www.sqlite.org | None | strong | y | A M A M M M A M A A M M A F F M | 200 200 200 200
www.wikipedia.org | ATS/9.2.16 | weak | y | A A A M M M M M A A A A M A A M | 200 200 200 200
per case: N01 -7,A22,M3; N02 -7,A21,M4; N03 -7,A22,M3; N05 -7,A19,M6; N06 -7,A19,M6; N07 A22,M10; N10 -7,A4,M16,O5; N13 -7,A19,M6; M01 -5,A25,M2; M03 -5,A27; M04 -5,A24,M3; M05 -5,A24,M3; M07 -5,A14,M13; M11 -5,A7,F20; C01 -5,A26,F1; C04 -5,A12,M15
sites with >=1 deviation on scored cases: 31/32
  ... ignoring M07: 31/32
  ... ignoring M07/M11: 29/32
  ... ignoring M07/M11/N10: 16/32
C04 (INM * + IMS older than LM) answered 200: 15 ['unpkg.com', 'cdnjs.cloudflare.com', 'nginx.org', 'www.debian.org', 'upload.wikimedia.org', 'aws.amazon.com', 'learn.microsoft.com', 'www.apple.com', 'nextjs.org', 'www.gnu.org', 'ftp.gnu.org', 'www.php.net', 'www.postgresql.org', 'www.sqlite.org', 'www.wikipedia.org']
N10 400 responses: ['www.rfc-editor.org', 'nginx.org', 'www.w3.org', 'www.cloudflare.com', 'www.php.net']
304 carrying a different ETag than sent: ['www.rfc-editor.org']

References

  1. R. Fielding, M. Nottingham, J. Reschke (eds.). RFC 9110: HTTP Semantics. IETF, 2022. Sections 5.3, 8.8.3, 13, 15.4.5. https://www.rfc-editor.org/rfc/rfc9110
  2. W. M. McKeeman. Differential Testing for Software. Digital Technical Journal 10(1), 1998.
  3. M. Nottingham et al. HTTP Caching Tests, http-tests/cache-tests, tests/conditional-etag.mjs and tests/conditional-lm.mjs, commit 3942fbf (2026-11-17). https://github.com/http-tests/cache-tests ; results at https://cache-tests.fyi/
  4. R. Fielding, M. Nottingham, J. Reschke (eds.). RFC 9111: HTTP Caching. IETF, 2022. Section 4.3.2. https://www.rfc-editor.org/rfc/rfc9111
  5. A. King. Same Range Header, Different Byte Windows: A Differential Test of HTTP Range Request Handling in Seven Static-File Servers. Pubroot 2026-320, 2026. https://pubroot.com/se/testing/same-range-header-different-byte-windows-a-differential-test-of-http-range-request-handling-in-seven-static-file-servers/ (self-citation)
  6. nginx/nginx issue #716: “If-Match: Incorrect strong comparison for identical weak ETags in ngx_http_test_if_match”, opened 2025-05-30. https://github.com/nginx/nginx/issues/716
  7. nginx source, [REDACTED_SECRET].c, master at 2e8440b. https://github.[REDACTED_SECRET].c
  8. REDbot, HTTP resource linter. https://redbot.org/
  9. R. Fielding et al. RFC 2616: Hypertext Transfer Protocol – HTTP/1.1. IETF, 1999. Section 14.25. https://www.rfc-editor.org/rfc/rfc2616
  10. pillarjs/send 1.2.1, index.js isPreconditionFailure; fastify/send 4.2.1, lib/send.js isPreconditionFailure. https://github.com/pillarjs/send ; https://github.com/fastify/send
  11. lukeed/sirv 3.0.2 and vercel/serve-handler 6.1.8 (If-None-Match handling). https://github.com/lukeed/sirv ; https://github.com/vercel/serve-handler
  12. I. Benhabbour, M. Attia, M. Dacier. HTTP Conformance vs. Middleboxes: Identifying Where the Rules Actually Break Down. PAM 2025, LNCS. https://doi.org/10.1007/978-3-031-85960-1_7
  13. M. Attia, I. Benhabbour, M. Dacier. The Developer, the RFC, and the Middlebox: An HTTP/2 Compliance Story. ACM IMC 2025. https://doi.org/10.1145/3730567.3764447