The short version

  • HTTP 206 Partial Content confirms that a server delivered one or more declared ranges of a selected representation. It says nothing about whether the ranges you collected across ten retries belong to that same representation.
  • Resumed transfers, download managers and caches all need the same three things: one shared strong validator, exact interval coverage, and a final representation-level digest.
  • Content-Length on a 206 counts the bytes in that response. Content-Range names the interval and the full length of the selected representation. Confuse the two and a correct partial answer becomes a false done.
  • A range-assembly receipt — representation identity plus every accepted interval — is the evidence that survives the audit.

Picture a routing-data archive pulling a nightly export from object storage. The link drops at sixty percent, and the client politely asks for the rest. Between the two requests, the origin publishes a new export of exactly the same nominal size. Both requests return 206. Every interval arrives. The byte counter hits the expected total. And the file on disk is the first half of yesterday's snapshot welded to the second half of today's — a document that never existed anywhere, now quietly feeding a routing analysis.

Nothing in that story is a vendor's fault. HTTP hands you every mechanism needed to catch it. The failure is asking a range response to prove something its semantics never claimed.

What 206 actually promises

RFC 9110 defines 206 Partial Content as successful fulfilment of a range request by transferring one or more parts of the selected representation. Read that again: parts of the selected representation. The status is a statement about the server's compliance with your Range header, not a statement about your client's inventory.

A recipient must read Content-Type and every Content-Range field to learn what came back and whether more is owed. For a single byte range, Content-Range gives the inclusive interval and usually the complete length of the selected representation. Content-Length, meanwhile, normally counts the octets in this 206 message. Treat those two numbers as interchangeable and a perfectly correct partial response turns into a false completeness signal.

Multiple ranges add bookkeeping. A multipart response may return ranges out of request order, and a server may coalesce or drop unsatisfiable ones. Coverage must be computed from the intervals that came back — never inferred from request order, response count, or a progress bar that only knows how to go up.

A stable URL is not a stable identity

The target URI staying the same tells you almost nothing. Content negotiation, a deployment, a regeneration timestamp or an origin update can change the bytes underneath it while the address stays put. Safe resumption therefore needs evidence that the old interval and the new interval describe the same representation.

That is precisely the boundary If-Range was built for. A client holding part of a representation sends a range request with a validator. If the validator still matches, the server returns the requested part. If it does not, the server ignores the Range field and ships the entire new representation. RFC 9110 forbids a client from putting a weak entity tag in If-Range, because the comparison has to distinguish representations that are genuinely safe to splice at byte level.

Monitor this deliberately. A 200 following an If-Range request is not an inefficient server that needs pushing back into 206. It is the origin telling you the old partial copy can no longer be extended. The right response is to throw away the assembly state and accept the new full representation.

Last-Modified dates work as If-Range validators only under the standard's strong-validator conditions. Where an origin generates more than one representation inside a single timestamp tick, an entity tag is the clearer evidence. The choice is operational — but the receipt should record which validator was used and why it qualified as strong.

Caches inherit the same debt

RFC 9111 lets a cache store incomplete responses and later complete them through range transfers, under defined conditions. It also draws a hard line at recombination: ranges may be combined only when they share the same strong validator and the cache follows the partial-content combination rules.

That rule stops a cache from manufacturing completeness out of unrelated fragments. It also means cache hit ratios and stored-byte coverage prove nothing on their own. An operator needs to know the cache key and negotiation fields, the strong validator attached to each stored interval, whether headers were refreshed from the newest response, and whether the assembled response is fresh, validated, or explicitly permitted to be served stale.

The same obligation lives outside any formal HTTP cache. Download managers, package mirrors, media pipelines and object-store gateways all perform range assembly. If they persist fragments, they have built a cache-shaped evidence problem whether or not anyone calls the component a cache.

Two digests, two different questions

RFC 9530 separates two integrity scopes. Content-Digest covers the content of the HTTP message. Repr-Digest covers the entire selected representation data. For a 206 that distinction is the whole game: a content digest can prove the returned segment arrived intact against the asserted value, while a representation digest can validate the object you reconstructed across requests and connections.

Neither field retires the validator requirement. The validator establishes whether the fragments are versions of the same selected representation; the final Repr-Digest checks the assembled bytes; interval coverage proves there are no gaps or overlaps hiding behind a total counter. Together they support a claim none of them can make alone.

Digest fields also say nothing about authentication, authorization or privacy. If the business question includes who was entitled to publish the representation, the digest assertion needs an authenticated channel or a separately verified signature and key-authority record. This analysis stays at the narrower assembly boundary: do the retrieved bytes form one coherent representation?

Build a range-assembly receipt

The practical evidence object is a range-assembly receipt. Open it when the first partial response is accepted. Record the target URI, method, the request headers that affect selection, content encoding, media type, complete length, strong validator, observation time, and whether the response came from an origin, an intermediary or a local store.

For every accepted part, record the returned interval, response status, validator, source, cache status and segment digest where available. Maintain a normalized interval set so overlaps cannot inflate progress and gaps stay visible. Reject any interval whose validator or representation metadata conflicts with the frozen assembly identity.

Close the receipt only when the intervals cover the selected representation exactly and the reconstructed bytes pass the expected Repr-Digest or another independently obtained representation hash. If the strong validator changes, disappears or turns ambiguous, discard the mixed assembly and fetch a complete current representation. That costs bandwidth. It protects the far more valuable claim that the object you are processing actually existed, once, as one thing.

The byte counter is a comfort. The receipt is the proof.

Sources