Does Squid store gzipped HTML?

From: Yee Man Chan <ymc@dont-contact.us>
Date: Thu, 21 Oct 1999 11:53:31 -0400

Hi, folks,

I am using 2.2S5 and IE5. I find that recently some sites gzipped their HTML
document to speed up access. One example is http://sports.yahoo.com/

I used gdb to dump the request from IE5 and the request from Squid to
sports.yahoo.com

Request from IE to Squid:

GET / HTTP/1.1\r\nAccept: */*\r\nReferer: http://www.yahoo.com/\r\nAccept-Langu
age: en-us\r\nAccept-Encoding: gzip, deflate\r\nUser-Agent: Mozilla/4.0
(compatible; MSIE 5.0; Windows 98; DigExt)\r\nHost:
sports.yahoo.com\r\nConnection: Keep-Alive\r\nCookie: B=e515j1jpmmgnh\r\n\r\n

Request from Squid to sports.yahoo.com

GET / HTTP/1.0\r\nAccept: */*\r\nReferer: http://www.yahoo.com/\r\nAccept-Langu
age: en-us\r\nAccept-Encoding: gzip, deflate\r\nUser-Agent: Mozilla/4.0
(compatible; MSIE 5.0; Windows 98; DigExt)\r\nHost:
sports.yahoo.com\r\nCookie: B=e515j1jpmmgnh\r\nVia: 1.1 www.enjoyweb.com:3128
(Squid/2.2.STABLE5)\r\nX-Forwarded-For: 192.168.2.223\r\nCache-Control:
max-age=259200\r\nConnection: keep-alive\r\n\r\n

When I was inside gdb, I find that the reply is like the following with
garbage (presumably gzipped HTML)

HTTP/1.0 200 OK
Date: Thu, 21 Oct 1999 17:32:51 GMT
Cache-Control: no-cache
Vary: Accept-Encoding
Connection: close
Content-Type: text/html
Content-Encoding: gzip

My question is: Suppose the server is not doing no-cache, does Squid gunzip
the content and then save it in hard drive? or save it in the gzipped form?

Thank you for your time.
Yee Man
Received on Thu Oct 21 1999 - 11:58:34 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:12:18 MST