The short version

  • RFC 9659 makes HTTP zstd a two-sided deal: a decoder MUST support Window_Size values up to and including 8 MB, and an encoder MUST NOT emit a frame that needs more.
  • A green canary, a valid registry token or a tidy encoder configuration proves none of that for the bytes that actually reached a given client.
  • The only defensible proof is a receipt chain: the frame header, transformation provenance, cache identity, the recipient's real memory budget, the decode result and what the application did next.

The canary worked. It negotiated zstd, pulled a short response, decoded it and painted the page. Somewhere a fleet dashboard turned green and a team went home. Meanwhile an older cache object — compressed before anyone touched the encoder cap — sat quietly at another edge, waiting for a bigger response to select it and a leaner process to choke on it. Both things are true at once: the canary passed, and the service was never interoperable.

That gap is the whole operational point of RFC 9659. The document is short because the contract is short. For the HTTP zstd content coding, a decoder MUST support Window_Size values up to and including 8 MB, and an encoder MUST NOT emit a frame that requires more. It turns a polite recommendation into a paired requirement. What it does not do is turn a configuration into an observation.

Why the window is the whole ballgame

RFC 8878 defines the Zstandard frame format. A frame's window bounds how far back a decoder may need to retain previously produced content for back-references. The format permits values from 1 KB to roughly 3.75 TB. Bigger windows buy better compression ratios and charge the recipient a bigger memory bill.

Before RFC 9659, RFC 8878 merely recommended that HTTP decoders handle up to 8 MB and that encoders avoid larger windows. A recommendation leaves a dangerous overlap: one implementation treats a larger frame as a legitimate optimization while a browser or a constrained agent rejects it to protect memory. RFC 9659 closes that overlap for the zstd HTTP coding. The canonical text and the XML source expose the same deliberately narrow change.

The RFC Editor information record identifies RFC 9659 as an Informational IETF document that updates RFC 8878. The errata search and the Datatracker history belong beside the deployed rule: operators need to know which stable text, correction state and publication history their controls claim to implement.

Negotiation is not a decode receipt

RFC 9110 gives HTTP content codings their semantic role. Accept-Encoding: zstd says the recipient is willing to accept a representation using that coding. Content-Encoding: zstd says which coding was applied to the selected representation. Neither field states the Zstandard window in the served frame. Neither proves which binary built it, whether an intermediary recompressed it, whether the recipient allocated the needed state, or whether the application accepted the decoded content.

That distinction dissolves the moment it hits aggregate telemetry. A server can count negotiated zstd responses without parsing a single emitted frame. An edge can log HTTP 200 before a client attempts decompression. A browser can support the coding while an embedding environment applies a tighter memory limit. A syntactically correct header is a naming event; successful decoding is a later state transition — and the two are not the same receipt.

RFC 7694 draws another useful boundary. It describes how a server can advertise acceptable content codings for request bodies. That advertisement is also a capability statement, not proof about a particular encoded request or its successful processing. The same discipline should hold in both directions: keep the offered set, the selected coding, the actual bytes and the result as separate evidence.

A cache can preserve the state the control plane forgot

RFC 9111 makes caches part of HTTP delivery semantics. When compression varies by Accept-Encoding, the selected representation and the cache key must stay aligned. An origin encoder can be corrected while an older compressed variant remains fresh at an edge. An intermediary can decompress and recompress. A purge can cover one key space and miss another. A fallback response can be stored without a sufficiently distinct variant identity.

So for RFC 9659 compliance the relevant object is not "the URL" or "the origin setting." It is the exact served byte stream and its custody history. A useful record ties a response to the origin build, encoder library, effective window cap, transformation hops, cache key, object generation, frame-header parse, client class and decode outcome. Without that join, separate green signals simply describe separate objects.

The IANA HTTP Content Coding Registry now describes zstd as a Zstandard byte stream with Window_Size no greater than 8 MB. Registry language defines what the token means. It cannot inspect a cache object and make the bytes conform. A registry entry is public coordination; a frame capture is operational evidence.

Decoder support and effective budget are different claims

The decoder side of RFC 9659 is deliberately symmetric with the encoder side. Producers cannot demand more than 8 MB; recipients claiming the HTTP coding must handle up to that line. Even so, a library capability test is not an application result. The calling process may impose a lower resource limit, terminate early, hit allocation pressure, reject the response for an unrelated reason, or fail after decoding during parsing.

That is why a compliance matrix needs at least three separate receipts. The first is a library or user-agent capability statement. The second is the effective limit in the process that actually handled the response. The third is the observed result for the captured representation. Collapse them into "client supports zstd" and you have hidden the exact place where the interoperability claim can fail.

RFC 9659 also warns that recipients can receive oversized, nonconforming frames and fail to decode them. That is not a contradiction. The decoder requirement establishes support through 8 MB; it does not require unlimited allocation or successful processing of invalid input. Operations should distinguish a standards-boundary rejection from corruption, truncation, unsupported coding, dictionary mismatch, cache poisoning, application parsing failure and plain resource exhaustion.

Do not import a different window contract

RFC 9842 later defines Compression Dictionary Transport, including the dcz content coding. Its Zstandard dictionary use can permit a window rule tied to dictionary size, with an upper bound as high as 128 MB. That is an adjacent contract for a different coding. It is not permission to serve ordinary zstd responses above RFC 9659's 8 MB line.

The distinction bites during feature rollouts. A shared compression library may expose one generic "window" control while different HTTP codings carry different interoperability meanings. Evidence must retain the coding token and the frame context, not merely the library name. A test for dcz cannot certify zstd; a successful zstd canary cannot certify dictionary negotiation.

What a defensible receipt chain contains

At the producer, retain the encoder binary and version, the effective configuration, the content-coding choice, the frame header and the object hash. At every transformation boundary, retain whether bytes were passed through, decoded, recompressed or replaced. At the cache, retain the variant key, object generation, freshness and invalidation history. At the recipient, retain the user-agent or library version, the effective memory limit, the frame-window observation, the decode result and a classified error. At the application, retain acceptance rather than inferring it from transport completion.

Sampling makes this practical. Parse frame headers for each encoder build and response class. Compare object hashes across origin and edges. Exercise old and constrained client classes with boundary frames, not just small payloads. Verify that fallback has a distinct cache identity. Alert when observed frames exceed 8 MB, when a transformation has no provenance, when decode failures cluster by object generation, or when negotiation counts diverge from completed application outcomes.

Lu Heng's Minimum Initial Specification offers the right institutional shape: keep the common contract small enough to implement and audit, while leaving local optimization free inside it. The 8 MB boundary is such a contract. Reality Layers stops the zstd label from borrowing the authority of a successful decode. Running-Code Primacy hands the final word to the bytes that were actually served and the recipient that actually processed them.

RFC 9659 resolves an ambiguity that should never have been delegated to guesswork between producer and recipient. Leadership earns the interoperability claim only by showing the rule survived the whole path — and by keeping the receipts that prove it.

Sources