Re: [squid-users] Unable to have certain site to be non-cacheable and ignore already cached data

From: Henrik Nordstrom <henrik_at_henriknordstrom.net>
Date: Thu, 16 Oct 2008 12:24:50 +0200

On tor, 2008-10-16 at 13:49 +0500, Anton wrote:
> Hello!
>
> was trying for a few hours to have a certain site
> (http://www.nix.ru) to be not cacheable - but squid always
> gives me an object which is in cache!
>
> My steps:
>
> acl DIRECTNIX url_regex ^http://www.nix.ru/$
> no_cache deny DIRECTNIX
> always_direct allow DIRECTNIX

This only matches the exact URL of root page of the server, not any
other objects on that web server (including any inlined objects or
stylesheets).

What you probably want is:

acl DIRECTNIX dstdomain www.nix.ru
no_cache deny DIRECTNIX

which matches the whole site.

always_direct is unrelated to caching. But if you want Squid to bypass
any peers you may have (cache_peer) then it's the right directive.

Regards
Henrik

Received on Thu Oct 16 2008 - 10:24:58 MDT

This archive was generated by hypermail 2.2.0 : Thu Oct 16 2008 - 12:00:04 MDT