[squid-users] Squid still not caching

From: Fabiano Carlos Heringer <bigu_at_grupoheringer.com.br>
Date: Tue, 28 Jun 2011 11:46:32 -0300

Hey, Please some advice how to figure out my squid box not caching (not
getting any HIT or cache growing) only RELEASE on store.log
Thanks!

Squid 2.7.9, on FreeBSD-8.1 (pfSense Box)

Config File:

http_port 10.0.0.1:3128
http_port 127.0.0.1:3128
http_port 127.0.0.1:80 transparent
icp_port 0

pid_filename /var/run/squid.pid
cache_effective_user proxy
cache_effective_group proxy
error_directory /usr/local/etc/squid/errors/Portuguese
icon_directory /usr/local/etc/squid/icons
visible_hostname localhost
cache_mgr admin_at_localhost
access_log /var/squid/logs/access.log
cache_log /var/squid/logs/cache.log
cache_store_log none
logfile_rotate 2
shutdown_lifetime 3 seconds
# Allow local network(s) on interface(s)
acl localnet src 10.0.0.0/255.255.255.0 127.0.0.0/255.0.0.0
uri_whitespace strip

cache_mem 512 MB
maximum_object_size_in_memory 900 KB
memory_replacement_policy heap GDSF
cache_replacement_policy heap GDSF
cache_dir diskd /var/squid/cache 10000 16 256
minimum_object_size 512 bytes
maximum_object_size 500000 KB
offline_mode off
cache_swap_low 90
cache_swap_high 95

# Setup some default acls
acl all src 0.0.0.0/0.0.0.0
acl localhost src 127.0.0.1/255.255.255.255
acl safeports port 21 70 80 210 280 443 488 563 591 631 777 901 3128
1025-65535
acl sslports port 443 563
acl manager proto cache_object
acl purge method PURGE
acl connect method CONNECT

# MODIFICACOES
ipcache_size 2048

acl store_rewrite_list urlpath_regex
\/(get_video\?|videodownload\?|videoplayback.*id)
acl QUERY2 urlpath_regex get_video\? videoplayback\? videodownload\?
cache allow QUERY2
storeurl_access allow store_rewrite_list
storeurl_access deny all
storeurl_rewrite_program /usr/local/sbin/storeurl.pl
storeurl_rewrite_children 5
storeurl_rewrite_concurrency 20
cache_store_log /var/squid/logs/store.log
cache allow all

refresh_pattern (get_video\?|videoplayback\?|videodownload\?) 5259487
99999999% 5259487 override-expire ignore-reload negative-ttl=0
refresh_pattern -i \.(gif|png|jpg|jpeg|ico)$ 10080 90% 43200
override-expire ignore-no-cache
refresh_pattern -i \.(iso|avi|wav|mp3|mp4|mpeg|swf|flv|x-flv)$ 43200 90%
432000 override-expire ignore-no-cache
refresh_pattern -i \.(deb|rpm|exe|zip|tar|tgz|ram|rar|bin|ppt|doc|gz)$
10080 90% 43200 override-expire ignore-no-cache
refresh_pattern -i \.index\.(html|htm)$ 0 40% 10080
refresh_pattern -i \.(html|htm|css|js)$ 1440 40% 40320
refresh_pattern
(download.microsoft|msgruser.dlservice.microsoft|windowsupdate|microsoft|au.download.windowsupdate)\.com/.*\.(cab|exe|msi|msu)
10080 100% 43200 reload-into-ims
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

http_access allow manager localhost

http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !safeports
http_access deny CONNECT !sslports

# Always allow localhost connections
http_access allow localhost

quick_abort_min 0 KB
quick_abort_max 0 KB
request_body_max_size 0 KB
reply_body_max_size 0 deny all
delay_pools 1
delay_class 1 2
delay_parameters 1 -1/-1 -1/-1
delay_initial_bucket_level 100
delay_access 1 allow all

# Setup allowed acls
# Allow local network(s) on interface(s)
http_access allow localnet
# Custom options
tcp_outgoing_address 127.0.0.1

# Default block all to be sure
http_access deny all
Received on Tue Jun 28 2011 - 14:46:21 MDT

This archive was generated by hypermail 2.2.0 : Tue Jun 28 2011 - 12:00:02 MDT