[squid-users] Squid 3.1.0.3 not caching anything

From: JOE009 <gapjoe_at_gmail.com>
Date: Wed, 24 Dec 2008 18:10:41 -0800 (PST)

Hi,

I want to setup Squid for a forward proxy that cache contents, I choose
3.1.0.3 because I want to try tproxy later but at the moment I haven't done
anything on tproxy.

After compile and install the squid 3.1, I found it cannot cache any
objects, objects are release immediately, like the following store.log:

1230170599.983 SWAPOUT 00 00000001 7C4DC34097EF39799D4E15EC4AE7FE67 200
1230170582 1203701412 1230256982 image/gif 108/108 GET
http://www.dog.com/images/FooterBottomRight.gif
1230170599.985 RELEASE 00 00000001 FBDD92C051B8F19183498C99A5709765 200
1230170582 1203701412 1230256982 image/gif 108/108 GET
http://www.dog.com/images/FooterBottomRight.gif
1230170630.896 SWAPOUT 00 00000001 F9337E08B9CDCB9B2BEC7EADBFDAC165 200
1230170611 1112803896 -1 image/gif 6008/6008 GET
http://www.cat.com/public/23/93/229259/7/1112803930359/f/map-with-text.gif
1230170630.896 RELEASE 00 00000001 6BF161D016DAC70C4B8208D1DBADBA94 200
1230170611 1112803896 -1 image/gif 6008/6008 GET
http://www.cat.com/public/23/93/229259/7/1112803930359/f/map-with-text.gif

===========access.log===============
1230170599.985 1046 192.168.255.111 TCP_MISS/200 497 GET
http://www.dog.com/images/FooterBottomRight.gif - DIRECT/12.44.249.10
image/gif
1230170600.861 796 192.168.255.111 TCP_MISS/200 14760 GET
http://www.dog.com/favicon.ico - DIRECT/12.44.249.10 image/x-icon
1230170603.108 102 192.168.255.111 TCP_MISS/304 276 GET
http://www.cat.com/public/23/93/229259/7/1112803930359/f/map-with-text.gif -
DIRECT/63.150.131.189 image/gif
1230170630.896 54 192.168.255.111 TCP_MISS/200 6343 GET
http://www.cat.com/public/23/93/229259/7/1112803930359/f/map-with-text.gif -
DIRECT/63.150.131.189 image/gif

My config is just default with adding the cache_dir (cache folders are
created successfully, permission is ok):
=======squid.conf============
cache_dir ufs /usr/local/squid/cache 1000 10 256
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8
acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localnet
http_access deny all
http_port 3128
hierarchy_stoplist cgi-bin ?
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 20% 4320
coredump_dir /usr/local/squid/var/cache
cache_store_log /usr/local/squid/var/logs/store.log

I don't see error in cache.log, etc. Could anyone suggest me what I did
wrong or where is a good point to troubleshoot?

FYI, the squid is on Centos 5.2 x86, the clock is correct as well.
I have access at least 20 web sites via the squid as well. Thank you.

regards,
Joe

-- 
View this message in context: http://www.nabble.com/Squid-3.1.0.3-not-caching-anything-tp21156984p21156984.html
Sent from the Squid - Users mailing list archive at Nabble.com.
Received on Thu Dec 25 2008 - 02:10:45 MST

This archive was generated by hypermail 2.2.0 : Thu Dec 25 2008 - 12:00:06 MST