Hi everyone I've got sme7 rc2 installed and it's set as a gateway and also dhcp server. Now all my clients can browse the internet etc. but squid does not seem to be caching anything.
Nothing at all? Check /var/log/squid/store.log.
For example if I download a 1MB file from a website on one PC and then attempt to do the same from another it simply downloads again from the internet rather than getting a cached version from sme.
squid won't cache the file if it comes with HTTP headers which say it shouldn't be cached.
It also won't cache above a configured max-size - but I don't think we have one of those configured.
[/quote]Squid is set by default to a max object size of 4MB. You can raise that limit to 20 MB (or whatever you want) by the following. Be warned that your squid cache may become very LARGE if you are not careful with this setting:
Make a custom template directory if it doesn't exist:# mkdir -p /etc/e-smith/templates-custom/etc/squid/squid.conf
Place template fragment into temlplate directory:# echo "maximum_object_size 20480 KB" > /etc/e-smith/templates-custom/etc/squid/squid.conf/20Maximum_object_size
Expand the Template:# /sbin/e-smith/expand-template /etc/squid/squid.conf
Restart squid to enable new settings:# /etc/rc7.d/S90squid restart
Another interesting item I have discovered at my office is that some of the XP machines here use the squid cache and others don't. I have not been able to figure why but I can force IE and Firefox to use the squid cache by setting them manually in their options.