Diagram comparing full re-download against HTTP Range resumption on an interrupted 1 GB file transfer

When a client downloads a file from an S3 bucket, standard HTTP fetches everything from byte zero to the end. But if the connection drops after 650 MB of a 1 GB download, restarting from scratch wastes time, server CPU, and network bandwidth.

HTTP range requests (Range: bytes=start-end) allow clients to request exact byte slices of an object. S3-compatible endpoints answer with HTTP 206 Partial Content. We look at what happens on the wire during download resumption and media seeking, comparing total bytes moved and request overhead.

Resuming an interrupted 1 GB download: worked example

Consider a 1,024 MB ISO download where the network connection drops after 650 MB is written to disk. Here is how standard recovery strategies compare:

Resumption StrategyFirst Attempt BytesSecond Attempt BytesTotal Bytes MovedWasted BandwidthTotal Requests
Full re-download (no Range)650 MB1,024 MB1,674 MB650 MB (38.8%)2 GETs
Range resume (curl -C -)650 MB374 MB1,024 MB0 MB (0.0%)2 GETs
Chunked worker (16 MB parts)650 MB (40 parts)384 MB (24 parts)1,034 MB10 MB (0.9%)65 GETs

In this worked example, resuming with HTTP Range headers is mathematically lossless: the second request begins at byte offset 681,574,400 (650 MB) and fetches only the remaining 374 MB.

What HTTP 206 looks like on the wire

To request an exact slice, the client includes the <code>Range</code> header. When resuming, it also sends <code>If-Range</code> with the object's ETag. If the file was modified on the server while the client was disconnected, the server safely falls back to a 200 OK full download instead of corrupting the output.

http
GET /large-dataset.tar.gz HTTP/1.1
Host: my-bucket-slug.tport.space
Range: bytes=681574400-1073741823
If-Range: "3b98d24fa10e7b89c011e428"

HTTP/1.1 206 Partial Content
Accept-Ranges: bytes
Content-Range: bytes 681574400-1073741823/1073741824
Content-Length: 392167424
Content-Type: application/octet-stream
ETag: "3b98d24fa10e7b89c011e428"

[392,167,424 binary bytes follow]

Seeking in video files: how browsers use Range

Video streaming over standard object storage relies entirely on range requests. An HTML5 <code>&lt;video&gt;</code> element never downloads an entire 2 GB MP4 file just to play it:

  • 1. Initial metadata probe: The browser requests bytes 0 to 1,024, reads the MP4 header, and finds the location of the index (the moov atom).
  • 2. Index fetch: The browser requests only the range containing the moov atom (typically 1 MB to 3 MB), learning the exact byte offset for every timestamp.
  • 3. User seeks to 45:00: Instead of buffering 45 minutes of video (approx. 900 MB), the browser sends a range request directly for the GOP (Group of Pictures) starting at minute 45 (approx. 8 MB).
  • Total bandwidth used to play 30 seconds at minute 45: ~12 MB instead of 912 MB.

Copy-paste commands for your toolbox

Test your bucket's range support directly from the terminal with curl (on public bucket addresses or presigned URLs) or the AWS CLI (for private buckets):

bash
# 1. Resume an interrupted download from a public bucket address with curl
curl -C - -O https://my-bucket-slug.tport.space/large-dataset.tar.gz

# Or resume a private object using a presigned URL:
curl -C - -O "$PRESIGNED_URL"

# 2. Inspect whether the server supports ranges (look for 'accept-ranges: bytes')
curl -I https://my-bucket-slug.tport.space/video.mp4

# 3. Read only the first 1 MB of a private object using the AWS CLI (signed SigV4)
aws s3api get-object \
  --bucket my-bucket \
  --key system-audit.log \
  --range bytes=0-1048575 \
  --endpoint-url https://s3.tport.space \
  first-1mb.log

On storage providers that charge for data transfer, repeated full downloads during network flakiness quickly inflate bills. For a broader look at network costs and traffic management, read our breakdown of egress fees across object storage services, or see how cache headers save bytes on public bucket assets.