Re: [squid-users] cache a specific website

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Sat, 12 Jul 2003 13:41:57 +0200

On Saturday 12 July 2003 11.47, Siew Wing Loon wrote:
> Hi,
>
> How can I cache a specific website in my cache
> directories such as download.microsoft.com or those
> files downloaded from Microsoft Updates? Can this be
> done?

Squid normally caches all that can be cached.

If you want Squid to not cache some sites (i.e. everything but the
sites you want to cache) then use the no_cache directive.

   acl cached_site dstdomain download.microsoft.com
   no_cache allow cached_site

the above will allow download.microsoft.com to be cached. No other
sites will be caches.

   acl not_cached_side dstdomain www.example.com
   no_cache deny not_cached_site

and similarily, the above construct will make everything but
www.example.com cached.

as I said above, the default is to cache all what can be cached.

Regards
Henrik

-- 
Donations welcome if you consider my Free Squid support helpful.
https://www.paypal.com/xclick/business=hno%40squid-cache.org
If you need commercial Squid support or cost effective Squid or
firewall appliances please refer to MARA Systems AB, Sweden
http://www.marasystems.com/, info@marasystems.com
Received on Sat Jul 12 2003 - 05:42:18 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:17:57 MST