Search squid archive

refresh_pattern configuration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Squid Cache: Version 2.5.STABLE12
and
Squid Cache: Version 2.7.STABLE5

I am using following refresh_patterns and never encounter any problem.
e.g once I visit a website, on next visit usually squid serves it from
cache, and TCP_HIT or TCP_MEM_HIT or TCP_REFRESH_HIT etc are so common
in '/var/log/squid/access'

But a person(who I beleive is a Linux/Squid Guru) critcize on the
refresh_pattern I am using in squid.

So please pass your comments and corrections on the following configs

#Suggested default:
refresh_pattern ^ftp:           1440    20%     10080
refresh_pattern ^gopher:        1440    0%      1440
####refresh_pattern .             0       20%     4320

refresh_pattern -i \.ico$  43200 100% 43200 override-lastmod
override-expire ignore-reload
refresh_pattern -i \.png$  43200 100% 43200 override-lastmod
override-expire ignore-reload
refresh_pattern -i \.jpg$  43200 100% 43200 override-lastmod
override-expire ignore-reload
refresh_pattern -i \.jpeg$ 43200 100% 43200 override-lastmod
override-expire ignore-reload
refresh_pattern -i \.pdf$  43200 100% 43200 override-lastmod 
override-expire ignore-reload
refresh_pattern -i \.zip$  43200 100% 43200 override-lastmod
override-expire ignore-reload
refresh_pattern -i \.tar$  43200 100% 43200 override-lastmod
override-expire ignore-reload
refresh_pattern -i \.gz$   43200 100% 43200 override-lastmod
override-expire ignore-reload
refresh_pattern -i \.tgz$  43200 100% 43200 override-lastmod
override-expire ignore-reload
refresh_pattern -i \.exe$  43200 100% 43200 override-lastmod
override-expire ignore-reload
refresh_pattern -i \.rpm$  43200 100% 43200 override-lastmod
override-expire ignore-reload
refresh_pattern -i \.prz$  43200 100% 43200 override-lastmod
override-expire ignore-reload
refresh_pattern -i \.ppt$  43200 100% 43200 override-lastmod
override-expire ignore-reload
refresh_pattern -i \.doc$  43200 100% 43200 override-lastmod
override-expire ignore-reload
refresh_pattern -i \.inf$  43200 100% 43200 override-lastmod
override-expire ignore-reload
refresh_pattern -i \.swf$  43200 100% 43200 override-lastmod
override-expire ignore-reload
refresh_pattern -i \.mid$  43200 100% 43200 override-lastmod
override-expire ignore-reload
refresh_pattern -i \.wav$  43200 100% 43200 override-lastmod
override-expire ignore-reload
refresh_pattern -i \.mp3$  43200 100% 43200 override-lastmod
override-expire ignore-reload

refresh_pattern -i \.index.(html|htm)$ 0 40% 10080
refresh_pattern -i \.(html|htm|css|js)$ 1440 40% 40320
refresh_pattern . 0 40% 40320

Regards
--ms




[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux