HTTP Range Requests Explained: How Resume and Video Seeking Work
This is a practical explainer on how web servers send pieces of a file instead of the whole thing at once — known in HTTP as “byte serving” or Range Requests (RFC 7233 and RFC 9110).
It’s purely a web-standards guide. It doesn’t cover bypassing login walls or DRM. Byte serving is the open internet feature that lets you skip ahead in a video, read page 50 of a large PDF immediately, or resume a paused download without starting over.
Normally, when you click a download link, your browser asks the web server a very simple question: “Send me the entire file, starting from byte zero.”
That works fine for a small photo. But imagine you’re downloading a 10 GB Ubuntu disk image and your Wi-Fi drops at 90%. Without a way to ask for just the last 10%, you’d have to throw away 9 GB of data and start from scratch. Or imagine watching a 2-hour movie online and clicking the 1-hour mark — you don’t want to wait for the first hour to download first! That problem is exactly what HTTP Range Requests solve.
1. Step One: Asking the Server “Can I Jump Around?”
Before a download manager splits a file or tries to resume, it has to check if the server even supports byte ranges. (Live video streams or dynamically generated reports often don’t, because the server doesn’t know the total file size upfront.)
So the client sends a quick HEAD request — basically asking for the file’s label without downloading the contents yet. If the server supports it, the reply includes one magic line:
Content-Length: 4831838208
Accept-Ranges: bytes
ETag: "120000000-61b5c490b8f00"
Accept-Ranges: bytes is the server saying: “Yes, feel free to ask for specific byte slices.” If it says Accept-Ranges: none (or leaves that line out), you won’t be able to pause and resume reliably.
2. Step Two: Asking for a Slice & Getting 206 Partial Content
Notice that byte counting starts at 0, and the end number is included. So if you want the first 500 bytes of a file, you ask for bytes=0-499:
Host: releases.ubuntu.com
Range: bytes=0-499
If-Range: "120000000-61b5c490b8f00"
Instead of replying with the usual 200 OK, the server answers with 206 Partial Content. That status code simply means: “Here is just the piece you asked for, not the whole file.”
Content-Range: bytes 0-499/4831838208
Content-Length: 500
Look at that If-Range line we sent earlier: that’s a clever safety check. It carries the file’s unique version tag (ETag). If someone updated the file on the server while you were paused, the tags won’t match — so the server refuses to mix old bytes with new bytes and safely restarts from byte 0 with a 200 OK.
3. Everyday Places You Use This Without Knowing
- Fast Web View PDFs: Ever opened a 500-page PDF manual in your browser and jumped straight to page 300? The PDF viewer uses Range requests to fetch only the index and page 300, skipping the other 499 pages until you scroll.
- Resuming Interrupted Downloads: If a file stops at 60%, your downloader checks how many bytes it already saved on disk and sends
Range: bytes=600000-(leaving the end blank means “to the end of the file”). - Peeking Inside Remote ZIPs: Because ZIP files keep their table of contents at the very end of the file, tools like NeXDM can request just the last 64 KB using a Range header and show you every file inside a 20 GB archive in milliseconds!
4. What Happens When Things Go Wrong?
Two quirks trip up developers and users regularly. First, if you ask for a slice past the end of the file (like asking for byte 5000 of a 1000-byte file), the server returns 416 Range Not Satisfiable. Second, if a web server is compressing text or data on the fly with gzip, it often disables Range requests because byte positions don’t line up cleanly across compressed chunks. Originally defined in RFC 2616 and RFC 7233, all of these rules were unified in June 2022 under RFC 9110 (HTTP Semantics) so they work the same way across HTTP/1.1, HTTP/2, and HTTP/3.
Frequently Asked Questions
What is an HTTP Range Request in simple words?
Instead of downloading a whole file from start to finish, a Range Request lets your browser or download manager ask the server for just one specific slice of bytes (like bytes 200 to 399).
What does 206 Partial Content mean?
Normally a server replies 200 OK when sending a whole file. When it sends only the slice you asked for, it replies 206 Partial Content.
Why can’t I resume some downloads?
If a server replies Accept-Ranges: none or generates the file dynamically on the fly without knowing its total size, it doesn’t support byte ranges, so broken downloads have to restart from zero.
Further Reading & Standards
- How Download Accelerators Use Byte Ranges for Speed
- Peeking Inside Remote ZIP Files Using Tail Ranges
- MDN Web Docs — HTTP Range Requests
- IETF RFC 9110 — Range Requests Specification
Javed builds high-speed networking tools in Rust and writes about how Windows, TCP, and SSD storage actually behave in the real world. You can check out his test numbers on our benchmarks page or read more about the project.