[squid-users] Squid giving TCP_MISS 99% of the time

From: Adam Membrey <membreya@dont-contact.us>
Date: Fri, 6 Apr 2007 17:57:42 +1000

Hi,

I've just whipped up a quick configuration for Squid 2.6 under Windows,
however I have noticed that despite the cache directory filling up and files
 being put into cache, my access.log contains a LOT of TCP_MISS (to give you
 an idea, approximately 1,500 compared to 4 TCP_HIT)

 I have attached an example from the access.log and the squid.conf in the
 hope that someone will be able to help :(

 1175840281.015 531 192.168.0.2 TCP_MISS/301 806 GET
 http://mumsmeeting.com/images/smilies/babydust3.gif
 1175840305.921 1046 192.168.0.2 TCP_MISS/200 9153 GET
 http://www.mumsmeeting.com/images/smilies/babydust3.gif
 1175840357.609 0 192.168.0.2 TCP_HIT/200 9160 GET
 http://www.mumsmeeting.com/images/smilies/babydust3.gif

 In the perfect situation I would want squid to cache EVERY item that is
 static (predominantly graphic files)

 http_port 3128
 dns_nameservers 203.50.2.71 203.50.2.71
 cache_mgr membreya@dodo.com.au
 visible_hostname Adam
 cache_dir ufs c:/squid/var/cache 1024 16 256
 acl Query urlpath_regex cgi-bin \?
 acl all src 0.0.0.0/0.0.0.0
 acl manager proto cache_object
 acl localhost src 127.0.0.1/255.255.255.255
 acl PURGE method PURGE
 acl to_localhost dst 127.0.0.1/8
 acl SSL_ports port 443 563
 acl Safe_ports port 80 21 443 563 70 210 210 1025-65535 280 488 591 777
 acl CONNECT method CONNECT
 acl localnetwork0 src 127.0.0.0/8
 acl localnetwork1 src 192.168.0.0/24
 hierarchy_stoplist cgi-bin ?
 refresh_pattern ^ftp: 1440 20% 10080
 refresh_pattern ^gopher: 1440 0% 1440
 refresh_pattern . 0 20% 4320
 coredump_dir c:/squid/var/cache

 cache_mem 64 MB
 dns_testnames localhost
 http_access allow manager localhost
 http_access deny manager
 http_access deny !Safe_ports
 http_access deny CONNECT !SSL_ports
 http_access allow PURGE localhost
 http_access deny PURGE
 http_access allow localnetwork0
 http_access allow localnetwork1
 no_cache deny QUERY
 http_access deny all
 http_reply_access allow all
 icp_access deny all
 access_log c:/squid/var/logs/access.log
Received on Fri Apr 06 2007 - 01:57:29 MDT

This archive was generated by hypermail pre-2.1.9 : Tue May 01 2007 - 12:00:01 MDT