TECHNOLOGY

HTTP artifact downloads: a Range request can return the full representation

In this article
THE QUICK TAKE

Requesting a byte range does not prove that the returned body begins at the requested offset.

The request is not the response contract

An artifact downloader can request the remaining bytes of a partially downloaded model file. That request alone does not establish that the server will return a partial representation. A server can instead return the complete object.

A proposed downloader examines the response status before deciding whether to append or replace local content. Blindly appending every successful response can concatenate an entire file onto an existing prefix, producing corruption even though every network operation appeared successful.

Partial content carries an explicit position

The range-request documentation distinguishes a partial-content response from a full successful response. Content-Range describes the covered interval and total representation size when known. The interval uses inclusive byte positions, which a consumer must interpret consistently with its local offset.

Verify that the returned interval matches the intended continuation. The length of the received body alone is not enough to establish its position. A plausible number of bytes can belong to a different range or a different representation.

If-Range handles representation change differently

If-Range makes the range conditional on a validator. When the condition no longer holds, the documented behavior is to return the full representation rather than the requested partial continuation. A weak entity tag must not be used as its tag validator.

This creates a deliberate replacement path. A client that regards the full response as merely another chunk defeats the mechanism. Preserve the validator associated with the local prefix and choose how to restart when the server indicates that the continuation assumption no longer applies.

An unsatisfied range needs inspection

A range beyond the available extent can produce a range-not-satisfiable response. Its Content-Range can communicate the current representation size. This may indicate an invalid local offset, a changed object or a mismatch in the downloader’s accounting.

Do not treat that response as automatic proof that the local artifact is complete. Compare the expected artifact identity and size using the application’s actual metadata. A matching length is useful evidence but is not a substitute for any required content-integrity verification.

Transport completion and artifact acceptance differ

Range delivery concerns representation transfer. A model loader still needs the intended artifact revision and whatever integrity or format validation its workflow requires. Successful partial responses do not establish that a sequence of downloads belongs to one accepted model release.

A proposed review covers partial, full, changed-validator and unsatisfied-range responses. It makes append-versus-replace decisions explicit, so recovery from an interrupted transfer does not silently create a syntactically plausible but incorrect model file.

Primary references

HTTP range-request guide.

If-Range conditional behavior.

Content-Range reference.

Related explanations: Model artifact storage; Transport and body limits.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles