Varnish1.1.2 returns 200OK,but no content

Christophe Husson christophe.husson at univ-reims.fr
Fri Jan 11 16:00:49 CET 2008


I've a similar problem with http 1.0 protocol on dynamic objects like
php generated data.

Some log from varnishlog:

15 TxRequest    b GET
15 TxURL        b /bug.php
15 TxProtocol   b HTTP/1.0
...
15 RxProtocol   b HTTP/1.1
15 RxStatus     b 200
15 RxResponse   b OK
15 RxHeader     b Date: Fri, 11 Jan 2008 14:32:33 GMT
15 RxHeader     b Server: Microsoft-IIS/4.0
15 RxHeader     b Connection: close
15 RxHeader     b Content-Type: text/css; charset: UTF-8
13 ObjProtocol  c HTTP/1.1
13 ObjStatus    c 200
13 ObjResponse  c OK
13 ObjHeader    c Date: Fri, 11 Jan 2008 14:32:33 GMT
13 ObjHeader    c Server: -
13 ObjHeader    c Content-Type: text/css; charset: UTF-8
15 BackendClose b default
13 TTL          c 1588262781 RFC 120 1200061953 1200061953 0 0 0
13 VCL_call     c fetch
13 VCL_return   c pass
13 Length       c 0
13 VCL_call     c deliver

The web server (Apache 2) don't send content-length or transfer encoding
chuncked header.
Varnish calculate the objet length only when the get query use http 1.1
protocol (/bin/varnish/cache_fetch.c line 346) or if the server reply
whith a content-length or transfert encoding chunk header.

Can this be fixed ?
Thanks




More information about the varnish-misc mailing list