[squid-users] Can`t cache always TCP_MISS
Amos Jeffries
squid3 at treenet.co.nz
Wed May 11 12:30:08 UTC 2016
On 11/05/2016 10:43 p.m., Jacek Zaleski wrote:
> Hi
> i try use squid in my centos7 in 99% request i have TCP_MISS/200
>
> Debugging
NP: the debug log snippet you posted contains nothing relevant to the
issue described.
Please configure:
debug_options ALL,1 20,2
and look for lines "checkCachable" and stating why each objects is not
stored.
> My config pats
>
> cache dir :
> 98 cache_mem 800 MB
> 99 logfile_rotate 10
> 100 memory_pools off
> 101 minimum_object_size 0 bytes
> 102 maximum_object_size 200 MB
> 103 maximum_object_size_in_memory 512 KB
> 104 #quick_abort_min 0 KB
> 105 #quick_abort_max 0 KB
> 106 log_icp_queries off
> 107 client_db off
> 108 buffered_logs on
> 109 half_closed_clients off
> 110 cache_log /var/log/squid/cache1.log
> 111
> 112 # Uncomment and adjust the following to add a disk cache directory.
> 113 cache_dir aufs /squid-cache 65536 128 256 min-size=512000
> 114
> 115 # Leave coredumps in the first cache dir
> 116 coredump_dir /var/spool/squid
> 117
> 118 #error_directory /usr/share/nginx/404site
> 119 #Special Options for 0365
> 120 forward_max_tries 25
> 121 #
>
>
>
> patterns :
>
> 124 refresh_pattern ^ftp: 1440 20% 10080
> 125 refresh_pattern ^gopher: 1440 0% 1440
> 126 refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
> 127 refresh_pattern -i \.(gif|png|jpg|jpeg|ico)$ 10080 90% 160000 override-expire ignore-no-cache ignore-no-store ignore-private
> 128 refresh_pattern -i \.(iso|avi|wav|mp3|mp4|mpeg|swf|flv|x-flv)$ 43200 90% 160000 override-expire ignore-no-cache ignore-no-store ignore-private
> 129 refresh_pattern -i \.(deb|rpm|exe|zip|tar|tgz|ram|rar|bin|ppt|doc|tiff)$ 10080 90% 160000 override-expire ignore-no-cache ignore-no-store ignore-private
> 130 refresh_pattern -i \.index.(html|htm)$ 0 40% 10080
> 131 refresh_pattern . 600 40% 40320 ignore-no-store override-expire
ignore-no-cache is obsolete. Please remove all uses of it.
ignore-no-stre and ignore-private are highly dangerous. Please also
remove those.
> 132 cache allow all
> 133 cache_effective_user squid
> 134 cache_effective_group squid
> 135 ## allow replies to client requests
> 136 http_reply_access allow all
Amos
More information about the squid-users
mailing list