Re: [squid-users] Optimizing Squid for Bandwidth Savings

From: Przemek Czerkas <pczerkas@dont-contact.us>
Date: Tue, 17 Oct 2006 17:32:52 +0200

> I've seen many posts and articles on optimizing Squid for saving
> bandwidth, but haven't really seen any clear and up-to-date examples
> on this topic.
[..]
> 'maximum savings'

Some lines were wrapped.

# no_cache deny QUERY
maximum_object_size 64 MB
cache_replacement_policy heap LFUDA
memory_replacement_policy heap GDSF

# this will devastste HTTP

refresh_pattern -i (cam|kam|live|stream).*\.(gif|jpeg|jpg)(\?.*|)$ 10 20% 28800 override-expire
              override-lastmod reload-into-ims
              ignore-no-cache ignore-private ignore-auth

refresh_pattern -i \.(gif|jpeg|jpg|swf|png|bmp|pic)$ 2880 20% 28800 override-expire
             override-lastmod reload-into-ims
             ignore-no-cache ignore-private ignore-auth

refresh_pattern -i \.(html|php|asp|dll|htm|aspx|mspx|shtml|cgi|php3|jse|phtml|po|pl|fcgi|jsp|py|php4)$ 10 20% 28800 override-expire
             override-lastmod reload-into-ims
             ignore-no-cache ignore-private

refresh_pattern -i \.(js|css|class|jar|xml|txt|cfm|doc|xls|pdf)$ 2880 20% 28800 override-expire
            override-lastmod reload-into-ims
            ignore-no-cache ignore-private ignore-auth

refresh_pattern -i \.(exe|gz|tar|tgz|zip|arj|ace|bin|cab|msi)(\?.*|)$ 10 20% 2880 override-expire
           override-lastmod reload-into-ims
           ignore-no-cache ignore-private ignore-auth

refresh_pattern -i \.(mid|mp[234]|wav|ram|rm|au)(\?.*|)$ 2880 20% 28800 override-expire
          override-lastmod reload-into-ims
          ignore-no-cache ignore-private ignore-auth

refresh_pattern -i \.(mpg|mpeg|avi|asf|wmv|wma)(\?.*|)$ 2880 20% 28800
         override-expire override-lastmod reload-into-ims
         ignore-no-cache ignore-private ignore-auth

refresh_pattern . 0 20% 2880
        override-expire override-lastmod reload-into-ims
        ignore-no-cache ignore-private
Received on Tue Oct 17 2006 - 09:33:08 MDT

This archive was generated by hypermail pre-2.1.9 : Wed Nov 01 2006 - 12:00:04 MST