Video Plays but Won’t Seek: Test HTTP Range Requests
Published
If a website video plays from the beginning but stalls when you jump ahead, test how its public URL responds to a request for part of the file. A browser can use these byte-range requests to fetch video it has not downloaded yet. The checks below separate a delivery problem from a file or player problem.
Check the request made when you seek
These steps cover a video served directly as a file, such as an MP4. A player using HLS playlists has different requests to inspect; see HLS vs MP4 if you are unsure which you have.
Open developer tools on the affected page, select Network, disable the browser cache, and reload. Play the video, then jump to a point beyond the buffered portion. Find the media request triggered by that action. If no request appears, the player may already have the data; try a fresh load and a later position.
Copy the actual media URL, including any required query string. The address of the page containing the player is not the video address. If the video never starts at all, use the broader HTML playback troubleshooting guide first.
Ask the public URL for a small piece
Run this in a terminal, replacing the example URL. Keep the quotes, especially for signed URLs containing an ampersand. Treat signed URLs as private credentials when sharing diagnostics.
curl --silent --show-error --location --max-time 20 \
--dump-header - --output /dev/null \
--header 'Range: bytes=0-1023' \
--write-out '\nDownloaded: %{size_download} bytes\n' \
'https://example.com/media/lesson.mp4'
This sends a GET request and prints headers while discarding the downloaded body. Do not replace it with curl -I: HEAD does not test the transfer of a requested interval. A server that ignores Range may send the entire file, until the command finishes or its time limit stops it.
For a file longer than the requested interval, a successful single-range response might look like this. This is an illustrative response for a 500,000-byte MP4:
HTTP/2 206
content-type: video/mp4
content-range: bytes 0-1023/500000
content-length: 1024
Downloaded: 1024 bytes
The offsets include both endpoints, so bytes 0 through 1023 occupy 1024 bytes. The total after the slash is the full file size. MDN’s range-request guide explains these fields. With redirects, read the final response block; an earlier redirect status does not describe the media response.
Repeat with Range: bytes=1024-2047, using a file large enough to contain that interval. Check that the returned interval changes accordingly. A successful request for the beginning alone does not establish that another part can be retrieved.
Interpret the response before changing anything
| Response | What to investigate |
|---|---|
| 206 with the matching Content-Range | The server honored this interval. Inspect the browser’s actual failing request next. |
| 200 with the full file | This request did not receive partial delivery. Check the server, application route, and CDN. |
| 416 Range Not Satisfiable | Check the requested offsets against the current file length; the file may be shorter than expected. |
| HTML, a login page, or an access error | Check the path, authentication, and signed-link expiry before testing the encode. |
Accept-Ranges: bytes advertises support, but it is not proof that the requested slice was returned. Its absence alone does not prove failure either. RFC 9110 allows a client to request a range without that advertisement and allows a server to ignore Range. The actual response is what matters.
Locate the layer that changes the response
If you have an authorized way to access the origin directly, run the same request there and at the public CDN URL. Use the same file version. Partial delivery at the origin and a full response at the public URL narrows the investigation to the path between them.
For a custom application endpoint, check that it honors the requested offsets or uses a file-serving facility that does. Adding Accept-Ranges or changing the status to 206 cannot substitute for returning the correct bytes. If object storage sits behind the endpoint, inspect the storage request as well as the response sent to the browser.
For a CDN, consult its current range and caching requirements. Cloudflare documents method, encoding, conditional-header, and origin-response considerations in its range-request reference. Keep cache state in your notes: test an initial request and a repeat rather than assuming an origin test represents cached delivery.
A browser request can differ from the simple terminal test. Compare its cookies, URL, and conditional headers. In particular, a mismatched If-Range validator can correctly produce a full 200 response, as RFC 9110’s If-Range definition describes. Check the failing exchange before disabling caching.
If range delivery works, inspect the file and player
For an ordinary MP4, the moov metadata describes how to find the media. FFmpeg’s faststart option moves this index to the beginning. That can help initial access, but it does not add range support to a server. The web export guide covers preparing a delivery file.
Try the same media in a plain player with native controls to separate custom seek handling from delivery. Compare the file’s duration and playback locally, and inspect subsequent failed requests after a seek. A correct 206 response is one useful check, not a guarantee that the whole video will play.
After a fix, repeat the original seek on the deployed page with a fresh cache. Test near the end as well as the beginning, and check your supported phones and browsers. Save the media URL, requested interval, status, Content-Range, and cache state with the issue so the next person can reproduce it.