[squid-users] keep-alive issue

From: canoeberry <squid_at_jp.payne-family.org>
Date: Thu, 28 Jul 2011 15:29:01 -0700 (PDT)

When I connect directly to www.google.co.uk using HTTP/1.1 I get a chunked
encoding response and the connection is kept open and everything is great.
See below:

GET http://www.google.co.uk/ HTTP/1.1
Host: www.google.co.uk

And the response:

HTTP/1.1 200 OK
Date: Thu, 21 Jul 2011 14:22:12 GMT
Expires: -1
Cache-Control: private, max-age=0
Content-Type: text/html; charset=ISO-8859-1
Set-Cookie:
PREF=ID=d28b1d4568fedffb:FF=0:TM=1311258132:LM=1311258132:S=u2Jy8nbNrhd5k2ns;
expires=Sat, 20-Jul-2013 14:22:12 GMT; path=/; domain=.google.co.uk
Set-Cookie:
NID=49=H2DO9FOCCh66VVOiWaFxjJ4qHHz90qC2SUuTIZeSgDgSYW5iYmYxpYNuC4nbl32Daruld6omZF30RhuNvNPtTN81AdYkF3zqlyrzzvwQlvzx_j8cflKT_YJtz-8PF26n;
expires=Fri, 20-Jan-2012 14:22:12 GMT; path=/; domain=.google.co.uk;
HttpOnly
Server: gws
X-XSS-Protection: 1; mode=block
Transfer-Encoding: chunked

If I do the exact same thing through our squid proxy, with the default
configuration file, I get the following response:

HTTP/1.0 200 OK
Date: Thu, 21 Jul 2011 14:44:55 GMT
Expires: -1
Cache-Control: private, max-age=0
Content-Type: text/html; charset=ISO-8859-1
Set-Cookie:
PREF=ID=de315e75aba1e117:FF=0:TM=1311259495:LM=1311259495:S=PcrDBRzcBdy9AVOq;
expires=Sat, 20-Jul-2013 14:44:55 GMT; path=/; domain=.google.co.uk
Set-Cookie:
NID=49=XOmNoSeD18EXwrM2yUxOv-mVbzkyAe5CwJVwKInPmsZzarQJfVHgZc5ElhHCc1OKSwy_ZtJjymb6B8xwPHkULF-Xi_sevbg8SYP233iETUMjSgbeDmDICAmtwEdx9Xqz;
expires=Fri, 20-Jan-2012 14:44:55 GMT; path=/; domain=.google.co.uk;
HttpOnly
Server: gws
X-XSS-Protection: 1; mode=block
X-Cache: MISS from ip-10-204-107-78
Via: 1.0 ip-10-204-107-78 (squid/3.1.10)
Connection: close

Yikes - I think I see the error. Google responded with HTTP/1.0 when going
through the proxy. Perhaps I have to tell squid to use HTTP/1.1?

--
View this message in context: http://squid-web-proxy-cache.1019090.n4.nabble.com/keep-alive-issue-tp3702715p3702715.html
Sent from the Squid - Users mailing list archive at Nabble.com.
Received on Thu Jul 28 2011 - 22:29:03 MDT

This archive was generated by hypermail 2.2.0 : Fri Jul 29 2011 - 12:00:03 MDT