Is there a way to disable byte-range requests on the client side?

2.3k Views Asked by At

I understand that one can set Accept-Ranges: none on the server to advise the client not to attempt a range request.

I am wondering if there is a way to tell a browser not to attempt a range request without having to make any changes on the server.

For instance, is there a setting in Chrome or Firefox that I can toggle to deter my browser from making range requests?

1

There are 1 best solutions below

2
CodeCaster On

You answered the question in the first sentence.

The relevant RFC is 7233, Hypertext Transfer Protocol (HTTP/1.1): Range Requests:

2.3. Accept-Ranges

A client MAY generate range requests without having received this header field for the resource involved.

A server that does not support any kind of range request for the target resource MAY send

Accept-Ranges: none

to advise the client not to attempt a range request.

If you mean you want to know how to disable range requests in a browser altogether, consult the specific browser's documentation. A quick web search yielded no options for me to do this for common browsers.