Discussion:
Status code 200 & empty page
(too old to reply)
b***@gmail.com
2013-04-30 20:19:00 UTC
Permalink
Hi,

we're having a bizarre random issue on our apache2 servers. Once in a while (1 in 1000 requests about) we see in our logs that the request was successful (HTTP code 200), but that 0 bytes where transferred:

XXX.XXX.XXX.XXX - - [26/Apr/2013:11:22:50 -0400] "GET /js/jQuery/jquery.cookies.js HTTP/1.1" 200 0
XXX.XXX.XXX.XXX - - [26/Apr/2013:11:22:50 -0400] "GET /js/jQuery/jquery.js HTTP/1.1" 200 0

Now this happens on php files, js files, css files or images files;

What would cause an 200 HTTP_CODE but 0 bytes transferred?

It seems looking through the logs that the client automatically retries these files (I get another query within the same second that has an 200 error code also but with a good file size)

Is there any logical explanation for this?

Running Apache/2.2.16 (Debian)
On Debian 6.0.7

Using the out of the box Debian configs for apache

Thank you,

Ben
Jeff Long
2013-05-03 14:51:34 UTC
Permalink
Post by b***@gmail.com
Hi,
XXX.XXX.XXX.XXX - - [26/Apr/2013:11:22:50 -0400] "GET /js/jQuery/jquery.cookies.js HTTP/1.1" 200 0
XXX.XXX.XXX.XXX - - [26/Apr/2013:11:22:50 -0400] "GET /js/jQuery/jquery.js HTTP/1.1" 200 0
Now this happens on php files, js files, css files or images files;
What would cause an 200 HTTP_CODE but 0 bytes transferred?
I've been able to replicate this behavior by double clicking on
hyperlinks. It appears the first request is logged as successful (200)
but nothing (0 bytes) gets transferred to the client because the client
has already moved on to the second set of requests.

Jeff Long

Loading...