Re: [squid-users] can't get squid to cache

From: Angelo Hongens <angelo_at_hongens.nl>
Date: Thu, 10 Jul 2008 19:45:52 +0200

Sorry, sent this mail directly to Hendrik.. Here it is to the list. I'm
still pulling my hear out :(

Henrik Nordstrom wrote:
>> On ons, 2008-07-09 at 14:32 +0200, Angelo Höngens wrote:
>>
>>>> Is there any way I can force caching if the control headers are
>>>> missing??
>>
>> refresh_pattern with a min age does this.

I expect this line in my squid.conf should take care of that?

refresh_pattern . 3600 100% 3600 ignore-no-cache ignore-reload
override-expire override-lastmod

>>>> Here's two records from access.log:
>>>>
>>>> 1215606505.637 1678 10.94.206.73 TCP_MISS/200 3262 GET
>>>> http://10.94.206.77:8001/bin?id=ACC83639Zoover-NL&irversion=510
>>>> - FIRST_UP_PARENT/10.94.206.34 text/html 1215606506.990 1352
>>>> 10.94.206.73 TCP_MISS/200 3262 GET
>>>> http://10.94.206.77:8001/bin?id=ACC83639Zoover-NL&irversion=510
>>>> - FIRST_UP_PARENT/10.94.206.34 text/html
>>
>> Make sure you are not denying caching of query URLs (cache
>> directive), and that there is a refresh_pattern with a min age.

I expect these lines in my squid.conf to take care of that:

acl all src 0.0.0.0/0.0.0.0
cache allow all

>>
>> The best way to test is to use squidclient, both to Squid and the
>> web server. This will show you exactly what is going on with no
>> mangling of the HTTP headers what so ever.

Exactly the same..

source server:
-------------------------------------------------
[angelo_at_zvr-web-04 ~]$ squidclient -h 10.94.206.34 -p 8001 "/admin?op=ping"
HTTP/1.0 200 OK
Content-Type: text/html
Content-Length: 63

dgraph zvr-end-04:8001 responding at Wed Jul 09 16:13:18 2008
-------------------------------------------------

local squid:
-------------------------------------------------
[angelo_at_zvr-web-04 ~]$ squidclient -h localhost -p 8001 "/admin?op=ping"
HTTP/1.0 200 OK
Content-Type: text/html
Content-Length: 63
X-Cache: MISS from zvr-web-04.zoovercolo.local
Via: 1.0 zvr-web-04.zoovercolo.local:8001 (squid/2.6.STABLE16)
Connection: close

dgraph zvr-end-04:8001 responding at Wed Jul 09 16:13:53 2008
-------------------------------------------------

Any more ideas? Thanks in advance :)
Received on Thu Jul 10 2008 - 17:46:02 MDT

This archive was generated by hypermail 2.2.0 : Fri Jul 11 2008 - 12:00:03 MDT