[Varnish] #733: Content-Length set to 0 when no Content-Length headers is set
Varnish
varnish-bugs at varnish-cache.org
Mon Jul 12 16:06:01 CEST 2010
#733: Content-Length set to 0 when no Content-Length headers is set
----------------------+-----------------------------------------------------
Reporter: zab | Owner: phk
Type: defect | Status: new
Priority: high | Milestone: Varnish 2.1 release
Component: varnishd | Version: 2.1.2
Severity: blocker | Keywords:
----------------------+-----------------------------------------------------
In my current config, Varnish have only one backend (a caching server).
When trying to get a specific URL from the cache through Varnish, it
always
set the header "Content-Length: 0" for it before sending it back to
Firefox.
Inside the cache, this URL has no "Content-Length" header as you can see:
1) CACHE BACKEND ---> VARNISH
-----------------------------------------------------
HTTP/1.1 200 OK
Date: Tue, 15 Jun 2010 09:18:29 GMT
Content-Type: text/html; charset=UTF-8
X-Powered-By: ASP.NET
Set-Cookie: jsessionid=XXXXXXXXXXXXXXXXXXX; path=/
[payload]
2) VARNISH ----> FIREFOX
-----------------------------------------
Content-Type text/html; charset=UTF-8
X-Powered-By ASP.NET
Set-Cookie jsessionid=XXXXXXXXXXXXXXXXXXX; path=/
Content-Length 0
Date Mon, 12 Jul 2010 10:11:06 GMT
X-Varnish 353742751
Age 0
Via 1.1 varnish
[payload]
N.B: getting this URL directly from the cache (i.e without using Varnish)
works perfectly.
--
Ticket URL: <http://varnish-cache.org/ticket/733>
Varnish <http://varnish-cache.org/>
The Varnish HTTP Accelerator
More information about the varnish-bugs
mailing list