[squid-users] Squid not caching in accelerator mode

From: Mohan <mohansrao@dont-contact.us>
Date: Tue, 21 Nov 2006 11:53:32 -0800

I have turned on debug messages and here's a curl request to my squid.
This is second or third request in a row for the same URL. I believe
that squid should have cached this request but it turns out that it
hasn't. It is fetching the URL from my apache server. Any clues on how
to troubleshoot this issue ? Below is the curl request to fetch this url.

2006/11/21 11:24:39| The request GET
http://russia.nscp.aoltw.net:3128/gkozy0052/Hello-three-spaces/ is
ALLOWED, because it matched 'all'
2006/11/21 11:24:39| storeGet: looking up 18919C94AF20668D699872132D58C3B7
2006/11/21 11:24:39| storeCreateEntry:
'http://russia.nscp.aoltw.net:3128/gkozy0052/Hello-three-spaces/'
2006/11/21 11:24:39| new_MemObject: returning 0x9de7808
2006/11/21 11:24:39| new_StoreEntry: returning 0x9db83c0
2006/11/21 11:24:39| storeKeyPrivate: GET
http://russia.nscp.aoltw.net:3128/gkozy0052/Hello-three-spaces/
2006/11/21 11:24:39| storeHashInsert: Inserting Entry 0x9db83c0 key
'DAF0E9E5CB3F4AFC9C34B4EC4465D137'
2006/11/21 11:24:39| storeLockObject: key
'DAF0E9E5CB3F4AFC9C34B4EC4465D137' count=2
2006/11/21 11:24:39| storeClientCopy: DAF0E9E5CB3F4AFC9C34B4EC4465D137,
seen 0, want 0, size 4096, cb 0x80633a4, cbdata 0x9dc3c68
2006/11/21 11:24:39| storeClientCopy2: DAF0E9E5CB3F4AFC9C34B4EC4465D137
2006/11/21 11:24:39| storeClientCopy3: Waiting for more
2006/11/21 11:24:39| storeLockObject: key
'DAF0E9E5CB3F4AFC9C34B4EC4465D137' count=3
2006/11/21 11:24:39| storeLockObject: key
'DAF0E9E5CB3F4AFC9C34B4EC4465D137' count=4
2006/11/21 11:24:39| peerSourceHashSelectParent: Calculating hash for
10.169.155.156
2006/11/21 11:24:39| storeUnlockObject: key
'DAF0E9E5CB3F4AFC9C34B4EC4465D137' count=3
2006/11/21 11:24:39| httpStart: "GET
http://russia.nscp.aoltw.net:3128/gkozy0052/Hello-three-spaces/"
2006/11/21 11:24:39| storeLockObject: key
'DAF0E9E5CB3F4AFC9C34B4EC4465D137' count=4
2006/11/21 11:24:39| httpSendRequest: FD 13: httpState 0x9dc7c38.
2006/11/21 11:24:39| httpBuildRequestHeader: range specs: (nil),
cachable: 1; we_do_ranges: 0
2006/11/21 11:24:39| httpBuildRequestHeader: User-Agent: curl/7.10.6
(i386-redhat-linux-gnu) libcurl/7.10.6 OpenSSL/0.9.7a ipv6 zlib/1.1.4
2006/11/21 11:24:39| httpBuildRequestHeader: Host:
russia.nscp.aoltw.net:3128
2006/11/21 11:24:39| httpBuildRequestHeader: Pragma: no-cache
2006/11/21 11:24:39| httpBuildRequestHeader: Accept: image/gif,
image/x-xbitmap, image/jpeg, image/pjpeg, */*
2006/11/21 11:24:39| httpSendRequest: FD 13:
GET /gkozy0052/Hello-three-spaces/ HTTP/1.0^M
User-Agent: curl/7.10.6 (i386-redhat-linux-gnu) libcurl/7.10.6
OpenSSL/0.9.7a ipv6 zlib/1.1.4^M
Host: russia.nscp.aoltw.net:3128^M
Pragma: no-cache^M
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*^M
Via: 1.1 russia.nscp.aoltw.net:3128 (squid/2.6.STABLE4)^M
X-Forwarded-For: 10.169.155.156^M
Cache-Control: max-age=259200^M
Connection: keep-alive^M
^M

2006/11/21 11:24:39| httpSendComplete: FD 13: size 405: errflag 0.
2006/11/21 11:24:39| httpReadReply: FD 13: len 16766.
2006/11/21 11:24:39| ctx: enter level 0:
'http://russia.nscp.aoltw.net:3128/gkozy0052/Hello-three-spaces/'
2006/11/21 11:24:39| httpProcessReplyHeader: key
'DAF0E9E5CB3F4AFC9C34B4EC4465D137'
2006/11/21 11:24:39| GOT HTTP REPLY HDR:
---------
HTTP/1.1 200 OK^M
Date: Tue, 21 Nov 2006 19:24:39 GMT^M
Server: Apache/2.0.54 (Unix) mod_jk/1.2.14^M
Set-Cookie: JSESSIONID=ADC788696A28202DD84F5CAE859F98EB; Path=/^M
Set-Cookie: blogscratch=UPD_@0; Expires=Mon, 19-Feb-2007 19:24:39 GMT;
Path=/^M
Etag: "1151563287000-c=0"^M
Cache-Control: max-age=0, must-revalidate, proxy-revalidate^M
Connection: close^M
Content-Type: text/html;charset=UTF-8^M

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

curl request :

> GET /gkozy0052/Hello-three-spaces/ HTTP/1.1
User-Agent: curl/7.10.6 (i386-redhat-linux-gnu) libcurl/7.10.6
OpenSSL/0.9.7a ipv6 zlib/1.1.4
Host: russia.nscp.aoltw.net:3128
Pragma: no-cache
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
Received on Tue Nov 21 2006 - 12:53:44 MST

This archive was generated by hypermail pre-2.1.9 : Fri Dec 01 2006 - 12:00:03 MST