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/, [EMAIL PROTECTED]

Reply via email to