Web polygraph with Squid... no cacheable content.

From: Bradley R. Smith (brad@eng.cenus.com)
Date: Thu Jan 24 2002 - 14:19:02 MST


Hello,

I'm attempting to get the web-polygraph software working with Squid
and am having trouble in that squid doesn't seem to think any of the
content served up by polysrv is cacheable. The specifics are:

    OS => FreeBSD 4.4
    Squid => squid-2.4-200201240000
    Web Polygraph => polygraph-2.7.5

Squid configuration is the stock squid.conf with "http_access deny all"
replaced by "http_access allow all".

Web Polygraph is the stock simple.pg with the server and robot address
changes described in section "4. Adding a proxy" of the "Getting Started"
document.

After much prowling around I believe the following is the smoking gun
from the squid cache.log (with debugging turned on):

2002/01/24 11:45:32| refreshCheck: 'http://10.10.20.11:9090/w05ef1a0e.3c8d1bf6:0
0000004/t01/_00000001'
2002/01/24 11:45:32| STALE: age 60 > min 0
2002/01/24 11:45:32| Staleness = 60
2002/01/24 11:45:32| refreshCheck: Matched '<none> 0 20% 259200'
2002/01/24 11:45:32| refreshCheck: age = 60
2002/01/24 11:45:32| check_time: Thu, 24 Jan 2002 19:46:32 GMT
2002/01/24 11:45:32| entry->timestamp: Thu, 24 Jan 2002 19:45:32 GMT
2002/01/24 11:45:32| storeExpireNow: 'C5E9BA874EABEE74D17652C3077D9A37'

that was generated in response to the following HTTP reply:

2002/01/24 11:45:32| httpProcessReplyHeader: key 'C5E9BA874EABEE74D17652C3077D9A
37'
2002/01/24 11:45:32| ctx: enter level 0: 'http://10.10.20.11:9090/w05ef1a0e.3c8
d1bf6:00000004/t01/_00000001'
2002/01/24 11:45:32| GOT HTTP REPLY HDR:
---------
HTTP/1.0 200 OK
Cache-Control: public
Date: Thu, 24 Jan 2002 19:45:32 GMT
Content-Length: 3957
X-Target: 10.10.20.11:9090
X-Xact: 05ef1a06.60f60726:00000002 05ef1a0e.3c8d1bf6:7ffffff7
X-Abort: 1412400744 2082554117
X-Phase-Sync-Pos: 0

----------

A minor problem with this is I don't know where it gets the "age" value
from to determine that the reply is stale (which is how I interpret the
first log extract).

A major problem is I don't know how to change the behavior of the
polysrv/squid combo to do the right thing.

Any help would be greatly appreciated!

Brad Smith
Cenus Technologies



This archive was generated by hypermail 2b29 : Mon Feb 06 2006 - 12:00:21 MST