Squid caching

Red Squirrel

No Lifer
May 24, 2003
70,327
13,666
126
www.anyf.ca
I want to setup a caching proxy that will cache large files, but by default squid seems to not cache anything. I'm really new to proxy administration so not sure what I have to do to make it cache even large files. This proxy will be used by the AV updates so when 900 machines update at once, the definitions will be cached in the proxy rather then each machine going online. So I want files even as big as 5MB to be cached. I'd probably set a few machines to update before all the others, to ensure there's a full cached copy on the proxy.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
I've never installed squid manually, it's always been preinstalled on our firewalls but you can change all of the caching parameters in squid.conf.
 

bsobel

Moderator Emeritus<br>Elite Member
Dec 9, 2001
13,346
0
0
By default squid will cache files upto 4096mb, you'll want to change that to something higher (e.g. 8192 should do the trick for ya).
 

Red Squirrel

No Lifer
May 24, 2003
70,327
13,666
126
www.anyf.ca
Yeah found that, but for some reason it does not seem to be caching, is there a certain time that it stays cached?

Ex: I was downloading firefox over and over to see if it's taking it from the cache, but the cache size was increasing each time, so it was actually caching a new copy. Right now I'm messing with tcpdump to see if I can know exactly what happends.