Re: [squid-users] how to ignore "only-if-cached" cache header

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Fri, 18 Mar 2011 16:36:26 +1300

On 18/03/11 16:24, Rajkumar Seenivasan wrote:
> Is there any option to ignore the cache-control header
> "only-if-cached" when sent by a client?
> Requests with the above gets a 504 Gateway time-out and X-Squid-Error:
> ERR_ONLY_IF_CACHED_MISS 0.
>
>
> "You have issued a request with a "only-if-cached" cache control directive.
> The document was not found in the cache, or it required revalidation
> prohibited by the only-if-cached directive."
>
> I know cache-peer directive can take the option "allow-miss" but this
> setup has two-way peering and worried about forward loops.
> Appreciate any help.

Then you have just given the reason why its not a good idea to ignore.

All "allow-miss" does is cause the remote peer to ignore
"only-if-cached". (ie by not sending the flag).

If your topology is open to forwarding loops then you need to set your
cache_peer_access ACLs to prevent them starting.

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE9 or 3.1.11
   Beta testers wanted for 3.2.0.5
Received on Fri Mar 18 2011 - 03:36:31 MDT

This archive was generated by hypermail 2.2.0 : Wed Mar 23 2011 - 12:00:02 MDT