[squid-users] squid only caching for a few seconds... i.e. MISS/HIT/MISS/HIT

From: Neil Harkins <nharkins@dont-contact.us>
Date: Wed, 19 Sep 2007 18:12:25 -0700

Hi. Our squid appears to be caching .css for only a few seconds,
when I expect it should be caching it longer, and doing IMS requests.
I've included log excerpts (MISS/HIT/MISS/HIT) and sniffer output below.

I've tried both of the following refresh_patterns with no noticeable change:
refresh_pattern -i \.css$ 0 20% 15
refresh_pattern -i \.css$ 0 100% 15

And here's our logformat to decipher the logs:
logformat squid-sixapart %{%Y/%m/%d-%H:%M:%S%z(%Z)}tl %6tr %>a
%Ss/%03Hs %<st %rm %ru %un %Sh/%<A %mt src="%{X-Forwarded-For}>h"
ref="%{Referer}>h" ua="%{User-Agent}>h"
xff="%{X-incoming-X-Forwarded-For}>h"

The difference in %<st file sizes is due to the headers (X-Cache:
HIT/MISS, and Age: ),
the content hasn't changed in a year.

-neil

2007/09/19-17:13:59-0700(PDT) 4 10.0.0.18 TCP_MISS/200 596 GET
http://XXXXXXXXXXXXXXXXX/fiveninesflatlines/styles.css -
FIRST_UP_PARENT/10.0.50.100 text/css src="211.20.182.123"
ref="http://XXXXXXXXXXXXXXXXX/fiveninesflatlines/2006/05/fun_for_the_who.html"
ua="Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 4.0; KHTE
B338170436A38537T760056)" xff="-"

2007/09/19-17:13:59-0700(PDT) 0 10.0.0.18 TCP_MEM_HIT/200 594 GET
http://XXXXXXXXXXXXXXXXX/fiveninesflatlines/styles.css - NONE/-
text/css src="207.189.100.54"
ref="http://XXXXXXXXXXXXXXXXX/fiveninesflatlines/2006/05/fun_for_the_who.html?cid=83378865"
ua="Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 4.0; KHTE
B338170437A38301T760056)" xff="-"

2007/09/19-17:14:01-0700(PDT) 0 10.0.0.18 TCP_MEM_HIT/200 602 GET
http://XXXXXXXXXXXXXXXXX/fiveninesflatlines/styles.css - NONE/-
text/css src="211.20.182.123"
ref="http://XXXXXXXXXXXXXXXXX/fiveninesflatlines/2006/05/fun_for_the_who.html?cid=83378867"
ua="Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 4.0; KHTE
B338170436A38537T760056)" xff="-"

2007/09/19-17:14:20-0700(PDT) 6 10.0.0.18 TCP_MISS/200 596 GET
http://XXXXXXXXXXXXXXXXX/fiveninesflatlines/styles.css -
FIRST_UP_PARENT/10.0.50.100 text/css src="63.168.1.146"
ref="http://XXXXXXXXXXXXXXXXX/fiveninesflatlines/2006/05/fun_for_the_who.html"
ua="Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 4.0; KHTE
B338170460A38066T760056)" xff="-"

2007/09/19-17:14:21-0700(PDT) 0 10.0.0.18 TCP_MEM_HIT/200 602 GET
http://XXXXXXXXXXXXXXXXX/fiveninesflatlines/styles.css - NONE/-
text/css src="63.168.1.146"
ref="http://XXXXXXXXXXXXXXXXX/fiveninesflatlines/2006/05/fun_for_the_who.html?cid=83378887"
ua="Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 4.0; KHTE
B338170460A38066T760056)" xff="-"

---------

010.000.000.018.02587-010.000.010.078.03128:
GET /fiveninesflatlines/styles.css HTTP/1.1
Accept: */*
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 4.0; KHTE
B338167848A38589T760056)
Accept-Language: en-us
Accept-Encoding: gzip
Referer: http://XXXXXXXXXXXXXXXXX/fiveninesflatlines/2006/05/fun_for_the_who.html?cid=83371617
Host: XXXXXXXXXXXXXXXXX
Connection: Keep-Alive
X-incoming-X-Forwarded-For:
X-Forwarded-For: 208.27.160.12

010.000.010.078.03128-010.000.000.018.02587:
HTTP/1.0 200 OK
Date: Wed, 19 Sep 2007 23:30:50 GMT
Server: Apache
Last-Modified: Wed, 17 May 2006 01:05:34 GMT
ETag: "fe45aea6-c4-413f18444f380"
Accept-Ranges: bytes
Content-Length: 196
Vary: User-Agent
Content-Type: text/css
Age: 1
X-Cache: HIT from XXXXXXXXXXXXXXXXX
X-Cache-Lookup: HIT from XXXXXXXXXXXXXXXXX:3128
Via: 1.0 XXXXXXXXXXXXXXXXX:3128 (squid/2.6.STABLE6)
Connection: keep-alive

/* base css */
@import url(/.shared/themes/common/base-weblog.css);

/* portal css */

/* theme css */
@import url(/.shared/themes/lilia/theme-masala.css);

/* user css */

/* other css */

----------------------------------------------

010.000.000.018.03139-010.000.010.078.03128:
GET /fiveninesflatlines/styles.css HTTP/1.1
Accept: */*
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 4.0; KHTE
B338167861A38571T760056)
Accept-Language: en-us
Accept-Encoding: gzip
Referer: http://XXXXXXXXXXXXXXXXX/fiveninesflatlines/2006/05/fun_for_the_who.html
Host: XXXXXXXXXXXXXXXXX
Connection: Keep-Alive
X-incoming-X-Forwarded-For:
X-Forwarded-For: 208.36.120.75

010.000.010.078.03128-010.000.000.018.03139:
HTTP/1.0 200 OK
Date: Wed, 19 Sep 2007 23:31:00 GMT
Server: Apache
Last-Modified: Wed, 17 May 2006 01:05:34 GMT
ETag: "fe45aea6-c4-413f18444f380"
Accept-Ranges: bytes
Content-Length: 196
Vary: User-Agent
Content-Type: text/css
X-Cache: MISS from XXXXXXXXXXXXXXXXX
X-Cache-Lookup: MISS from XXXXXXXXXXXXXXXXX:3128
Via: 1.0 XXXXXXXXXXXXXXXXX:3128 (squid/2.6.STABLE6)
Connection: keep-alive

/* base css */
@import url(/.shared/themes/common/base-weblog.css);

/* portal css */

/* theme css */
@import url(/.shared/themes/lilia/theme-masala.css);

/* user css */

/* other css */

---------------------squid to backend-------------------------------

010.000.010.078.33617-010.000.050.100.00080: GET
/fiveninesflatlines/styles.css HTTP/1.0
Accept: */*
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 4.0; KHTE
B338168314A38072T760056)
Accept-Language: en-us
Accept-Encoding: gzip
Referer: http://XXXXXXXXXXXXXXXXX/fiveninesflatlines/2006/05/fun_for_the_who.html
Host: XXXXXXXXXXXXXXXXX
X-incoming-X-Forwarded-For:
Via: 1.1 XXXXXXXXXXXXXXXXX:3128 (squid/2.6.STABLE6)
X-Forwarded-For: 63.251.170.88, 10.0.0.18
Cache-Control: max-age=900
Connection: keep-alive

010.000.050.100.00080-010.000.010.078.33617: HTTP/1.0 200 OK
Date: Wed, 19 Sep 2007 23:38:34 GMT
Server: Apache
Last-Modified: Wed, 17 May 2006 01:05:34 GMT
ETag: "fe45aea6-c4-413f18444f380"
Accept-Ranges: bytes
Content-Length: 196
Vary: User-Agent
Keep-Alive: timeout=30, max=100
Connection: keep-alive
Content-Type: text/css

/* base css */
@import url(/.shared/themes/common/base-weblog.css);

/* portal css */

/* theme css */
@import url(/.shared/themes/lilia/theme-masala.css);

/* user css */

/* other css */
Received on Wed Sep 19 2007 - 19:12:37 MDT

This archive was generated by hypermail pre-2.1.9 : Mon Oct 01 2007 - 12:00:02 MDT