Re: [squid-users] Content-Lenght: 0 vs Missing Content-Length

From: Jim Christy <jim.christy@dont-contact.us>
Date: Wed, 16 Aug 2006 23:29:25 +0100

On 8/16/06, Henrik Nordstrom <henrik@henriknordstrom.net> wrote:
> ons 2006-08-16 klockan 17:51 +0200 skrev Matus UHLAR - fantomas:
> > On 16.08.06 10:59, Jim Christy wrote:
> > > Just wondering if someone can tell me which is best:
> > >
> > > Content-Length: 0
> > >
> > > or Content-Length completely missing from the header?
> >
> > the missing one. "0" is broken.
>
> Content-Lenght: 0
>
> is certainly not broken. Maybe you are confusing this with
> ERR_ZERO_SIZED_REPLY which is when Squid doesnt receive any reply at all
> before the connection was closed by the server, not event HTTP headers.
>
> > no problem. If the server supports chunked encoding, nothing bad should
> > happen.
>
> Squid is HTTP/1.0 so there is no chunked encoding.

So a file sending the header:

Transfer-Encoding: Chunked

won't cache in Squid?

Thanks
Jim

>
> Regards
> Henrik
>
>
>
Received on Wed Aug 16 2006 - 16:29:27 MDT

This archive was generated by hypermail pre-2.1.9 : Fri Sep 01 2006 - 12:00:02 MDT