Speed up squid proxy

Posted: December 27, 2009 in archlinux, Debian, Freebsd, Slackware

Speed up web caching squid proxy using this refresh_pattern.
refresh_pattern ^ftp: 1440 20% 10080

refresh_pattern ^gopher: 1440 0% 1440

refresh_pattern -i \.(gif|png|jpg|jpeg|ico)$ 10080 90% 43200 override-expire ignore-no-cache ignore-no-store ignore-private

refresh_pattern -i \.(iso|avi|wav|mp3|mp4|mpeg|swf|flv|x-flv)$ 43200 90% 432000 override-expire ignore-no-cache ignore-no-store ignore-private

refresh_pattern -i \.(deb|rpm|exe|zip|tar|tgz|ram|rar|bin|ppt|doc|tiff)$ 10080 90% 43200 override-expire ignore-no-cache ignore-no-store ignore-private

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

refresh_pattern . 0 40% 40320

## For squid cache youtube use this

refresh_pattern -i youtube.com/.* 10080 90% 43200

refresh_pattern (/cgi-bin/|\?) 0 0% 0

## make your squid fast ;p

Comments
  1. muzzo says:

    Salam bro, bagus artikel bro pasal linux ni.
    Aku nak tanya sikit..aku ada setup squid 2.6 + dansguardian 2.8 utk jadikan web content filtering..bro tau tak cara nak create policy utk blok access certain website ikut yg dah ditetapkan dalam dansguardian tu ikut jangkamasa ditetapkan?
    puas cari solution tapi tk jumpe..

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s