From df14dafe3233a2fa61038995405f672f6c1b23ad Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 10 Feb 2026 04:20:31 +0000 Subject: [PATCH] Document If-Unmodified-Since precedence over 304 paths Co-authored-by: Theo Browne --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 5aacbd8134..367e1526ad 100644 --- a/README.md +++ b/README.md @@ -78,6 +78,7 @@ Runtime command semantics: - `If-None-Match` / `If-Modified-Since` preconditions are evaluated before range handling, so satisfied validators return `304` even when a `Range` header is present. - Static precondition headers `If-Match` and `If-Unmodified-Since` are enforced with `412 Precondition Failed` semantics. - Failed `If-Match` checks take precedence over cache validators (e.g. matching `If-None-Match` still results in `412` if `If-Match` fails). +- Failed `If-Unmodified-Since` checks also return `412` before cache-based `304` handling. - Wildcard validators are supported where applicable (`If-None-Match: *`, `If-Match: *`). - Strong/weak validator semantics follow HTTP rules: weak ETags participate in `If-None-Match` weak comparison, but are rejected for strong-only checks (`If-Match`, `If-Range`). - `412` static precondition responses include validator headers (`ETag`, `Last-Modified`) and range capability metadata (`Accept-Ranges`, `Vary: Range`).