What is an HTTP Range Request?
An HTTP range request asks for selected portions of a resource representation rather than the entire representation. Byte ranges support uses such as seeking in media and resuming a download when the server supports them.
How HTTP Range Requests work
A client can request Range: bytes=0-1023 to ask for the first 1,024 bytes. A supporting server can return 206 Partial Content with Content-Range describing the response. It may instead ignore the Range header and send the complete representation with 200. An unsatisfiable range can produce 416. If-Range can make the range conditional on a validator so that a changed object is not stitched to bytes from an earlier version.
Key facts
- Range requests retrieve data; they do not implement a resumable upload protocol.
- A response body from a
200full response cannot safely be appended as though it were the requested range. Inspect status and range metadata. - Byte ranges refer to the selected representation. Changing content encoding or negotiating another variant can change its bytes and offsets.
When HTTP Range Requests matter
Verify range behavior through the actual storage and CDN path when building seeking or resumable downloads. Preserve a stable representation and validate its identity before joining downloaded ranges.