Antoni Villalonga wrote:
Hi!
There is any way to deny some ips to force a refresh of the cache?
When a user do a CRTL+SHIFT+R in firefox it forces a TCP_CLIENT_REFRESH_MISS in
Squid. Sadly, it increase the hits in Apache :-(
No there is not.
The closest you can get is to send them a 4xx forbidden page when this
happens by http_access deny with an ACL on the header or value.
Be careful though, its very normal behavior for people to do this when
the page is displaying badly and actually needs a refresh.
In this case Firefox sends this aditional headers in the request:
Pragma: no-cache
Cache-Control: no-cache
Also, I need to allow purges from localhost.
PURGE is controlled in Squid by the "method" type ACL.
recommended settigns are:
acl PURGE method PURGE
http_access allow localhost PURGE
http_access deny PURGE
Needs to be above any http_access which
Amos
--
Please be using
Current Stable Squid 2.7.STABLE7 or 3.0.STABLE19
Current Beta Squid 3.1.0.14