From b0482d89f4eefab0560c37437ee1e5f11de0fcf6 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 10 Feb 2026 04:30:30 +0000 Subject: [PATCH] Document tolerant whitespace in Range header parsing Co-authored-by: Theo Browne --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 367e1526ad..5bdf7d858b 100644 --- a/README.md +++ b/README.md @@ -73,6 +73,7 @@ Runtime command semantics: - Static HTML responses are served with `Cache-Control: no-store`; built `/assets/*` files are served with long-lived immutable cache headers. - Static file success responses include `Accept-Ranges: bytes`, `Vary: Range`, deterministic `ETag` and `Last-Modified` validators, plus hardened browser headers (`X-Content-Type-Options`, `X-Frame-Options`, `Referrer-Policy`, `Cross-Origin-Resource-Policy`, `Cross-Origin-Opener-Policy`). - Static files support single-range byte requests (`Range: bytes=...`) with standards-compliant `206` / `416` behavior. +- Static range parsing tolerates optional separator whitespace (e.g. `Range: bytes = 0 - 1023`). - Static non-range requests support `If-None-Match` and `If-Modified-Since` conditional caching via `304 Not Modified`. - Static range requests support `If-Range` semantics (matched validator keeps `206`; mismatched validator falls back to full `200` response). - `If-None-Match` / `If-Modified-Since` preconditions are evaluated before range handling, so satisfied validators return `304` even when a `Range` header is present.