"ignore-no-cache ignore-no-store ignore-private" I think is a bit too much. If someone took the time to set something to no-cache then I would listen to website. What I posted will keep media files fresh in the cache for 6 months before refreshing. The only problems that I have ran into with my set up is weather radar sites will end up with the radar images in the cache which won't refresh for 6 months... So therefor you have to make some deny cache acl's and put common weather websites in it like weather.com, noaa, etc
Speed up your Internet access using Squid's refresh patterns
Posted by: Anonymous [ip: 70.120.89.6] on November 22, 2008 08:33 PMrefresh_pattern ^ftp: 144000 20% 1008000
refresh_pattern -i \.(gif|png|jpg|jpeg|ico|bmp)$ 260000 90% 260009 override-expire
refresh_pattern -i \.(iso|avi|wav|mp3|mp4|mpeg|swf|flv|x-flv|mpg|wma|ogg|wmv|asx|asf)$ 260000 90% 260009 override-expire
refresh_pattern -i \.(deb|rpm|exe|zip|tar|tgz|ram|rar|bin|ppt|doc|tiff|pdf|uxx)$ 260000 90% 260009 override-expire
refresh_pattern -i \.index.(html|htm)$ 1440 90% 40320
refresh_pattern -i \.(html|htm|css|js)$ 1440 90% 40320
refresh_pattern (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 20% 4
"ignore-no-cache ignore-no-store ignore-private" I think is a bit too much. If someone took the time to set something to no-cache then I would listen to website. What I posted will keep media files fresh in the cache for 6 months before refreshing. The only problems that I have ran into with my set up is weather radar sites will end up with the radar images in the cache which won't refresh for 6 months... So therefor you have to make some deny cache acl's and put common weather websites in it like weather.com, noaa, etc
So the default conf on any squid below version 2.7 does not cache any dynamic content (urls with a "?" in it). So if you want to cache sites like youtube and google maps remove the deny cache tags in squid.conf
http://wiki.squid-cache.org/ConfigExamples/DynamicContent
http://wiki.squid-cache.org/ConfigExamples/DynamicContent/YouTube
All I did in squid 2.7 was remove
acl QUERY urlpath_regex cgi-bin \?
cache deny QUERY
and add
refresh_pattern (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 20% 4
to the bottom and that got it working
#