Re: [squid-users] http_accel question

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Mon, 01 Oct 2001 22:02:46 +0200

Note: What you sent from your IIS logs does not match the Squid
access.log snippet. Your IIS log shows 3 requests for the page, while
the access.log snippet only has one (the first, assuming your clocks are
in sync).

AJ Lemke wrote:

> 208.248.72.17 - - [01/Oct/2001:14:06:53 -0500] "GET
> http://cache.cartrucktrader.com/Listings/ListingsDealer.cfm? HTTP/1.1" 200
> 22412 TCP_MISS:DIRECT [
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-powerpoint, application/vnd.ms-excel,
application/msword, */*
Referer: http://cache.cartrucktrader.com/Listings/
Accept-Language: en-us
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0)
Host: cache.cartrucktrader.com
Connection: Keep-Alive
Cookie: CFID=3780; CFTOKEN=31693312
] [
HTTP/1.1 200 OK
Server: Microsoft-IIS/5.0
Date: Mon, 01 Oct 2001 19:06:52 GMT
Content-type: text/html
Page-Completion-Status: Normal
Page-Completion-Status: Normal
]

Plain cache miss of a query URL with an unspecified expiry time. With
your refresh_pattern setting I think this reply should get cached for 10
minutes provided you havent blocked query URL's from being cached (see
the no_cache directive).

> 208.248.72.17 - - [01/Oct/2001:14:06:53 -0500] "GET
> http://cache.cartrucktrader.com/Common/Styles.css HTTP/1.1" 304 198
> TCP_IMS_HIT:NONE [Accept: */*\r\nReferer:
> http://cache.cartrucktrader.com/Listings/ListingsDealer.cfm?DealerID=9\r\nAc
> cept-Language: en-us\r\nAccept-Encoding: gzip, deflate\r\nIf-Modified-Since:
> Fri, 10 Nov 2000 13:50:20 GMT; length=423\r\nUser-Agent: Mozilla/4.0
> (compatible; MSIE 5.5; Windows NT 4.0)\r\nHost:
> cache.cartrucktrader.com\r\nConnection: Keep-Alive\r\nCookie: CFID=3780;
> CFTOKEN=31693312\r\n] [HTTP/1.0 304 Not Modified\r\nDate: Fri, 14 Sep 2001
> 22:55:04 GMT\r\nContent-Type: text/css\r\nLast-Modified: Fri, 10 Nov 2000
> 13:50:20 GMT\r\n\r]

Plain cache hit a style sheet.

> 208.248.72.17 - - [01/Oct/2001:14:06:53 -0500] "GET
> http://cache.cartrucktrader.com/Common/Menu.js HTTP/1.1" 304 214
> TCP_IMS_HIT:NONE [Accept: */*\r\nReferer:
> http://cache.cartrucktrader.com/Listings/ListingsDealer.cfm?DealerID=9\r\nAc
> cept-Language: en-us\r\nAccept-Encoding: gzip, deflate\r\nIf-Modified-Since:
> Fri, 10 Nov 2000 18:41:05 GMT; length=2474\r\nUser-Agent: Mozilla/4.0
> (compatible; MSIE 5.5; Windows NT 4.0)\r\nHost:
> cache.cartrucktrader.com\r\nConnection: Keep-Alive\r\nCookie: CFID=3780;
> CFTOKEN=31693312\r\n] [HTTP/1.0 304 Not Modified\r\nDate: Fri, 14 Sep 2001
> 22:55:04 GMT\r\nContent-Type: application/x-javascript\r\nLast-Modified:
> Fri, 10 Nov 2000 18:41:05 GMT\r\n\r]

Plain cache hit for some javascript.

> Now this is after we had been to the page and clicked it again or refreshed
> and it should have cached it, and not queried the backend server.

Please note that you cannot normally test this using the "Reload"
button. Pushing the reload buttin will force a fresh copy to be fetched.
Not sure what will happen on reload request if you specify both
"ignore-reload" and "reload-into-ims".

> Am I wrong in how the acceleration mode of squid works? I figure once you
> go to the site the squid box has that page cached for ten minutes then the
> squid box went out and retreived it again, as per the refresh pattern.

Correct.

> refresh_pattern . 10 20% 4320 override-expire
> override-lastmod ignore-reload reload-into-ims

Regards
Henrik Nordström
Squid Hacker
Received on Mon Oct 01 2001 - 14:08:41 MDT

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