Hi Poul,<div><br></div><div><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
Can you please open a ticket on this ?<br></blockquote><div><br></div><div>Done.</div><div> </div><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
I need to read the RFC to find out if this is actually a bug, but it<br>is certainly not conventional of your backend to send HTTP/1.1</blockquote><div><br></div><div>My backend caching server blindly delivers content without inspecting it.</div>
<div>This specific page unfortunately comes from a Microsoft IIS ASP server before beign stored in the "cache server".</div><div> </div><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
and none of "Connection:", "Content-Length:" or "Transfer-Encoding"<br></blockquote><div> </div></div><div>Yep. But Varnish has to be a bit more tolerant regarding servers deficiencies. Right? </div>
<div><br></div><div>Hope this help.</div><div><br></div><div>Regards</div><div>Zab<br><br><div class="gmail_quote">2010/7/12 Poul-Henning Kamp <span dir="ltr"><<a href="mailto:phk@phk.freebsd.dk">phk@phk.freebsd.dk</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">In message <<a href="mailto:AANLkTilyL-KO-EbuGBveEMgzsvKyOySM3c_c7Oc3MrtK@mail.gmail.com">AANLkTilyL-KO-EbuGBveEMgzsvKyOySM3c_c7Oc3MrtK@mail.gmail.com</a>>, zabr<br>
ane Mikael writes:<br>
<br>
Can you please open a ticket on this ?<br>
<br>
I need to read the RFC to find out if this is actually a bug, but it<br>
is certainly not conventional of your backend to send HTTP/1.1 and<br>
none of "Connection:", "Content-Length:" or "Transfer-Encoding"<br>
<br>
Poul-Henning<br>
<br>
>--===============8364418252999650435==<br>
>Content-Type: multipart/alternative; boundary=0015174be612c79937048b2e98c0<br>
><br>
>--0015174be612c79937048b2e98c0<br>
>Content-Type: text/plain; charset=ISO-8859-1<br>
<div><div></div><div class="h5">><br>
>Hi list,<br>
><br>
>I'm facing a little problem with my actual varnish config.<br>
>Currently, Varnish have only one backend (it's a caching server).<br>
><br>
>When trying to get a specific URL from the cache through Varnish, it always<br>
>set the header "Content-Length: 0" for it before sending it back to Firefox.<br>
><br>
>Inside the cache, this URL has no "Content-Length" header as you can see:<br>
><br>
>1) CACHE BACKEND ---> VARNISH<br>
>-----------------------------------------------------<br>
>HTTP/1.1 200 OK<br>
>Date: Tue, 15 Jun 2010 09:18:29 GMT<br>
>Content-Type: text/html; charset=UTF-8<br>
>X-Powered-By: <a href="http://ASP.NET" target="_blank">ASP.NET</a><br>
>Set-Cookie: jsessionid=XXXXXXXXXXXXXXXXXXX; path=/<br>
><br>
>[payload]<br>
><br>
><br>
>2) VARNISH ----> FIREFOX<br>
>-----------------------------------------<br>
>Content-Type text/html; charset=UTF-8<br>
>X-Powered-By <a href="http://ASP.NET" target="_blank">ASP.NET</a><br>
>Set-Cookie jsessionid=XXXXXXXXXXXXXXXXXXX; path=/<br>
>Content-Length 0<br>
>Date Mon, 12 Jul 2010 10:11:06 GMT<br>
>X-Varnish 353742751<br>
>Age 0<br>
>Via 1.1 varnish<br>
><br>
>[payload]<br>
><br>
><br>
>How can I tell "Varnish" to always compute the "Content-Length" if it's not<br>
>specified (in the headers response from the cache)?<br>
><br>
>Help appreciated guys!!!<br>
><br>
>N.B: getting this URL directly from the cache (i.e without using Varnish)<br>
>works perfectly.<br>
><br>
>--<br>
>Regards<br>
>Zab<br>
><br>
</div></div>>--0015174be612c79937048b2e98c0<br>
>Content-Type: text/html; charset=ISO-8859-1<br>
>Content-Transfer-Encoding: quoted-printable<br>
><br>
>Hi list,<div><br></div><div><div>I&#39;m facing a little problem with my ac=<br>
>tual varnish config.</div><div>Currently, Varnish have only one backend (it=<br>
>&#39;s a caching server).</div><div><br></div><div>When trying to get a spe=<br>
>cific URL from the cache through Varnish, it always</div><br>
><div>set the header &quot;Content-Length: 0&quot; for it before sending it =<br>
>back to Firefox.</div><div><br></div><div>Inside the cache, this URL has no=<br>
> &quot;Content-Length&quot; header as you can see:</div><div><br></div><br>
><div>1) CACHE BACKEND ---&gt; VARNISH</div><div>---------------------------=<br>
>--------------------------</div><div>HTTP/1.1 200 OK</div><div>Date: Tue, 1=<br>
>5 Jun 2010 09:18:29 GMT</div><div>Content-Type: text/html; charset=3DUTF-8<=<br>
>/div><br>
><div>X-Powered-By: <a href=3D"<a href="http://ASP.NET" target="_blank">http://ASP.NET</a>"><a href="http://ASP.NET" target="_blank">ASP.NET</a></a></div><div>Set-Coo=<br>
>kie: jsessionid=3DXXXXXXXXXXXXXXXXXXX; path=3D/</div><div><br></div><div>[p=<br>
>ayload]</div><div><br></div><div><br></div><div>2) VARNISH ----&gt; FIREFOX=<br>
></div><br>
><div>-----------------------------------------</div><div><div>Content-Type<=<br>
>span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span>text/html; =<br>
>charset=3DUTF-8</div><div>X-Powered-By<span class=3D"Apple-tab-span" style=<br>
>=3D"white-space:pre"> </span><a href=3D"<a href="http://ASP.NET" target="_blank">http://ASP.NET</a>"><a href="http://ASP.NET" target="_blank">ASP.NET</a></a></div><br>
><div>Set-Cookie<span class=3D"Apple-tab-span" style=3D"white-space:pre"> </=<br>
>span>jsessionid=3DXXXXXXXXXXXXXXXXXXX; path=3D/</div><div>Content-Length<sp=<br>
>an class=3D"Apple-tab-span" style=3D"white-space:pre"> </span>0</div><div>D=<br>
>ate<span class=3D"Apple-tab-span" style=3D"white-space:pre"> </span>Mon, 12=<br>
> Jul 2010 10:11:06 GMT</div><br>
><div>X-Varnish<span class=3D"Apple-tab-span" style=3D"white-space:pre"> </s=<br>
>pan>353742751</div><div>Age<span class=3D"Apple-tab-span" style=3D"white-sp=<br>
>ace:pre"> </span>0</div><div>Via<span class=3D"Apple-tab-span" style=3D"whi=<br>
>te-space:pre"> </span>1.1 varnish</div><br>
></div><div><br></div><div>[payload]</div><div><br></div><div><br></div><div=<br>
>>How can I tell &quot;Varnish&quot; to always compute the &quot;Content-Len=<br>
>gth&quot; if it&#39;s not specified (in the headers response from the cache=<br>
>)?</div><br>
><div><br></div>Help appreciated guys!!!</div><div><br></div><div>N.B: getti=<br>
>ng this URL directly from the cache (i.e without using Varnish) works perfe=<br>
>ctly.</div><div><br>-- <br>Regards<br>Zab<br><br>
></div><br>
><br>
>--0015174be612c79937048b2e98c0--<br>
><br>
><br>
>--===============8364418252999650435==<br>
>Content-Type: text/plain; charset="us-ascii"<br>
>MIME-Version: 1.0<br>
>Content-Transfer-Encoding: 7bit<br>
>Content-Disposition: inline<br>
><br>
>_______________________________________________<br>
>varnish-misc mailing list<br>
><a href="mailto:varnish-misc@varnish-cache.org">varnish-misc@varnish-cache.org</a><br>
><a href="http://lists.varnish-cache.org/mailman/listinfo/varnish-misc" target="_blank">http://lists.varnish-cache.org/mailman/listinfo/varnish-misc</a><br>
>--===============8364418252999650435==--<br>
><br>
<font color="#888888"><br>
--<br>
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20<br>
phk@FreeBSD.ORG | TCP/IP since RFC 956<br>
FreeBSD committer | BSD since 4.3-tahoe<br>
Never attribute to malice what can adequately be explained by incompetence.<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Regards<br>Zabrane<br>
</div>