Re: [squid-users] monster.com with squid 2.4 STABLE4

From: Henrik Nordstrom <[email protected]>
Date: Wed, 21 Aug 2002 02:16:15 +0200

If the server responds differently based on the precense of a cookie
then the server SHOULD indicate this to downstream caches by including a
"Vary: Cookie" header. See RFC2616 (HTTP/1.1 spec).

Without the Vary header downstream caches have no way of knowing that
this page makes use of the cookie.

Regards
Henrik

Jigar Rasalawala wrote:
>
> Hi,
>
> I am using squid-2.4 STABLE 4 on RedHat 7.1.
> If I go to www.monster.com directly , it takes me at some page on monster.
> If i try to go www.monster.com using squid,
> It takes me to diff. page on monster. On that page If I click on "United
> State" on North America portion. It stays on the same page
> instead of going to monster.com Here I found reason, Squid is serving
> response from cache, eventhough browser is sending
> cookie as part of request.
>
> I did packe trace and I attached HTTP request and Response for the site for
> debugging perpose.
>
> Any help or suggestion or hint really appriciated..
>
> Thanks
> Jigar
>
> HTTP REQUEST and RESPONSE :
>
> GET http://www.monster.com/ HTTP/1.1
> Accept: application/vnd.ms-excel, application/msword,
> application/vnd.ms-powerpoint, image/gif, image/x-xbitmap, image/jpeg,
> image/pjpeg, */*
> Accept-Language: en-us,ja;q=0.5
> Accept-Encoding: gzip, deflate
> User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 4.0)
> Host: www.monster.com
> Proxy-Connection: Keep-Alive
>
> HTTP/1.0 302 Moved Temporarily
> Server: Microsoft-IIS/5.0
> Last-Modified: Mon, 19 Aug 2002 16:11:46 GMT
> Content-Length: 153
> Content-Type: text/html
> Cache-Control: max-age=1121
> Location: http://www.monster.com/geo/siteselection.asp
> Date: Mon, 19 Aug 2002 16:11:46 GMT
> Age: 21710
> X-Cache: HIT from 192.168.1.65
> Proxy-Connection: keep-alive
>
> <HTML>
> <HEAD>
> <TITLE>Error Page</TITLE>
> </HEAD>
> <BODY>
> An error (302 Moved Temporarily) has occured in response to this request.
> </BODY>
> </HTML>
>
> GET http://www.monster.com/geo/siteselection.asp HTTP/1.1
> Accept: application/vnd.ms-excel, application/msword,
> application/vnd.ms-powerpoint, image/gif, image/x-xbitmap, image/jpeg,
> image/pjpeg, */*
> Accept-Language: en-us,ja;q=0.5
> Accept-Encoding: gzip, deflate
> User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 4.0)
> Host: www.monster.com
> Proxy-Connection: Keep-Alive
>
> HTTP/1.0 200 OK
> Server: Microsoft-IIS/5.0
> Last-Modified: Mon, 19 Aug 2002 22:13:38 GMT
> Content-Length: 8101
> Content-Type: text/html
> Cache-Control: no-cache
> Date: Mon, 19 Aug 2002 22:13:38 GMT
> X-Cache: MISS from 192.168.1.65
> Proxy-Connection: keep-alive
>
> GET
> http://www.monster.com/geo/siteselection.asp?referer=siteselection.asp&urlna
> me=www.monster.com HTTP/1.1
> Accept: application/vnd.ms-excel, application/msword,
> application/vnd.ms-powerpoint, image/gif, image/x-xbitmap, image/jpeg,
> image/pjpeg, */*
> Referer: http://www.monster.com/geo/siteselection.asp
> Accept-Language: en-us,ja;q=0.5
> Accept-Encoding: gzip, deflate
> User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 4.0)
> Host: www.monster.com
> Proxy-Connection: Keep-Alive
>
> HTTP/1.0 302 Moved Temporarily
> Server: Microsoft-IIS/5.0
> Location: http://www.monster.com/
> Content-Length: 144
> Content-Type: text/html
> Cache-Control: private
> Date: Mon, 19 Aug 2002 22:13:43 GMT
> Set-Cookie: VIEWGSPAGE=Y; expires=Fri, 01-Jan-2038 05:00:00 GMT;
> domain=.monster.com; path=/
> Set-Cookie: REDIRECTSITE=www%2Emonster%2Ecom; expires=Fri, 01-Jan-2038
> 05:00:00 GMT; domain=.monster.com; path=/
> X-Cache: MISS from 192.168.1.65
> Proxy-Connection: keep-alive
>
> <head><title>Object moved</title></head>
> <body><h1>Object Moved</h1>This object may be found <a
> HREF="http://www.monster.com/">here</a>.</body>
>
> GET http://www.monster.com/ HTTP/1.1
> Accept: application/vnd.ms-excel, application/msword,
> application/vnd.ms-powerpoint, image/gif, image/x-xbitmap, image/jpeg,
> image/pjpeg, */*
> Referer: http://www.monster.com/geo/siteselection.asp
> Accept-Language: en-us,ja;q=0.5
> Accept-Encoding: gzip, deflate
> User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 4.0)
> Host: www.monster.com
> Proxy-Connection: Keep-Alive
> Cookie: VIEWGSPAGE=Y; REDIRECTSITE=www%2Emonster%2Ecom
>
> HTTP/1.0 302 Moved Temporarily
> Server: Microsoft-IIS/5.0
> Last-Modified: Mon, 19 Aug 2002 16:11:46 GMT
> Content-Length: 153
> Content-Type: text/html
> Cache-Control: max-age=1121
> Location: http://www.monster.com/geo/siteselection.asp
> Date: Mon, 19 Aug 2002 16:11:46 GMT
> Age: 21716
> X-Cache: HIT from 192.168.1.65
> Proxy-Connection: keep-alive
>
> <HTML>
> <HEAD>
> <TITLE>Error Page</TITLE>
> </HEAD>
> <BODY>
> An error (302 Moved Temporarily) has occured in response to this request.
> </BODY>
> </HTML>
Received on Tue Aug 20 2002 - 18:34:37 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:09:45 MST