Browser sends http request with RANGE

Posted by nute on Server Fault See other posts from Server Fault or by nute
Published on 2009-11-23T23:46:32Z Indexed on 2010/04/03 15:03 UTC
Read the original article Hit count: 550

Filed under:
|
|

I have a local testing environment in a Fedora virtual machine. Strangely, resources (css and js files) don't seem to work. Looking at Firebug, I see that the browser sends the HTTP request with "Range bytes=0-". The server responds with either an empty 200OK or an empty 206 Partial Content.

Here is an example:

Response Headers
Date    Mon, 23 Nov 2009 23:33:26 GMT
Server  Apache/2.2.13 (Fedora)
Last-Modified   Thu, 19 Nov 2009 22:58:55 GMT
Etag    "18-3aec-478c14dbee138"
Accept-Ranges   bytes
Content-Length  15084
Content-Range   bytes 0-15083/15084
Connection  close
Content-Type    text/css

Request Headers
Host    fedora.test
User-Agent  Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.5) Gecko/20091105 Fedora/3.5.5-1.fc11 Firefox/3.5.5
Accept  text/css,*/*;q=0.1
Accept-Language en-us,en;q=0.5
Accept-Encoding gzip,deflate
Accept-Charset  ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive  300
Connection  keep-alive
Referer http://fedora.test/pictures/
Cookie  __utma=26341546.1613992749.1258504422.1258569125.1258752550.4; __utmz=26341546.1258504422.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); PHPSESSID=tqf8jfmc77qihe97rl4tmhq685
Range   bytes=0-
If-Range    "18-3aec-478c14dbee138"

I don't know if the browser is sending the wrong request, or if it's the server that is doing this. Request made to the outside (such as google analytics) are working fine.

This is running in Fedora 11 in VirtualBox. Apache. PHP. The files are being served through the "shared folders" feature of VirtualBox (could it be related?).

No error logs could help me.

© Server Fault or respective owner

Related posts about http

Related posts about apache