A Blog about technology, linux, peer2peer, cool new downloads and software development.
Showing posts with label squid. Show all posts
Showing posts with label squid. Show all posts

Friday, May 1, 2009

squid : configure to cache dynamic content & large files

from : http://wiki.squid-cache.org/ConfigExamples/DynamicContent

vi /etc/squid/squid.conf
change :

acl QUERY urlpath_regex cgi-bin \?
cache deny QUERY
to :
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 20% 4320
------
Change :
maximum_object_size 4096 KB
to
maximum_object_size 40960 KB
------
Change :
cache_dir ufs /var/spool/squid 100 16 256
to (2 gigabyte with multithreaded access)
cache_dir aufs /var/spool/squid 2000 16 256