[squid-users] How to prevent caching of request or configure smart handling?

Amos Jeffries squid3 at treenet.co.nz
Sun Feb 28 19:35:20 UTC 2016


On 29/02/2016 8:20 a.m., Karl-Philipp Richter wrote:
> Hi,
> I'm experiencing trouble with IP lookup service used by DDNS clients
> like `ddclient` and bittorrent frontends like `rutorrent`. After
> configuring `squid` as intercepting HTTP caching proxy services like
> http://canyouseeme.org, http://checkip.dyndns.org/ and
> http://ipdetect.dnspark.com report result for local addresses within
> 192.168.0.0/16. My questions are now:
> 
>   * Since all services cause trouble: is `squid` misconfigured for
> caching request which obviously don't make sense to be cached (am I
> missing a configuration tweak to handle those services generically, i.e.
> without listing their addresses in an exclusion list) or are all tested
> services replying in an incorrect manner and squid does what it's
> supposed to?
>   * Why are requests to canyouseeme.org still served from cache after I
> added
> 
>         acl domain_all dstdom_regex -i .*
>         cache allow domain_all

That matches all HTTP requests that have a URL, or dont have a URL.
It is a complex and slow way version of "cache allow all".

> 
>         acl ip_services dstdomain "/etc/squid3/no-cache.acl"
>         cache deny ip_services
> 
>         always_direct allow ip_services
> 
>     with `.canyouseeme.org` in `/etc/squid3/no-cache.acl`? I observe
> TCP_HIT and TPC_MEM_HIT in `access.log` after restarting the service.
> 
> Any help or pointers are appreciated.

What is the rest of your config? The above details are almost
meaningless out of context.

Amos



More information about the squid-users mailing list