While downloading a PDF via google chrome, i receive a 206 status response from the server. After going through the RFC, i found out that the client is making a conditional GET request appending a range header. is there any way to disable the range header while making the request or using a different browser is a solution?
What server are you using?
This is the apache documentation for mod_headers. You can set the Accept-Ranges header to none
http://httpd.apache.org/docs/2.2/mod/mod_headers.html
Try setting "Accept-Ranges none" in the httpd.conf file.
The mod_headers module must be loaded in the server too.
Also, when the request of a pdf or often streamed file it's done through chrome or an adobe plugin or so (other plugins), they will always attempt to do the GET request with Range:0- and try partial requests of the file to show content to the user (first pages of the pdf if the pdf is big) and manage the download so the server will respond with 206 status.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With