Re: [squid-users] Question about HTTP Compress and squid

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Sun, 12 Dec 2004 00:15:49 +0100 (CET)

On Sat, 11 Dec 2004, [gb2312] 蒋 志坚 wrote:

> compression occur in squid or Server. HTTP/1.0 surport the
> Content-Encoding and Accept-Encoding, when Browser is HTTP/1.0, why
> squid does not cache the compressed file to save disk space.

Squid caches Content-Encoding when allowed by the origin server just like
any other HTTP reply, but most origin servers deny caching of
Content-Encoding in response to HTTP/1.0 clients. This primarily due to
HTTP/1.0 not having official support for server side content negotiation
in cooperation with shared caches. Caching of this type of replies
requires at a minimum Vary support, perferably ETag as well, but HTTP/1.0
does not guarantee this even if Squid has the minimum support required.

Sidenote: Transfer-Encoding is HTTP/1.1 dependent, and generally a lot
cleaner than Content-Encoding.

Regards
Henrik
Received on Sat Dec 11 2004 - 16:15:55 MST

This archive was generated by hypermail pre-2.1.9 : Sat Jan 01 2005 - 12:00:02 MST