DELAPARRA
Index
Color
NL
Category: HTTP headers

Range

Explained by Updated

What is Range?

Range: Request only a byte range of the resource — used for video streaming, resumable downloads. The Range header asks the server for only part of a resource, such as Range: bytes=0-1023 for the first kilobyte. The server answers with 206 Partial Content and just that piece. This makes video seeking and resumable downloads possible. When you skip ahead in a video, the browser requests the bytes from that point instead of downloading everything before it.

Definition source Coders Lingo, CC BY 4.0

Frequently asked questions about Range

What should you keep in mind with Range?

Static file servers and CDNs support ranges without configuration. If your application serves files itself, for example private downloads behind a login, make sure range requests are handled, or let the web server do it with a feature like X-Sendfile. Without range support, large downloads cannot resume after a dropped connection, and videos cannot be scrubbed until fully loaded.

What does an example of Range look like?

Range: bytes=0-1023

At a glance

CategoryHTTP headers
Explained by
Updated

More HTTP headers terms

All terms starting with R

Skills

Download all skills (zip)

Manuals

Related services

Need any help?

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.