Re: Squid w/ ICAP 204s

From: Alex Rousskov <>
Date: Thu, 11 Dec 2008 11:48:47 -0700

On Fri, 2008-12-05 at 13:31 -0800, Lisa Fowler wrote:

> I had made an assumption
> that Squid would send "Allow: 204" in all cases because of the
> squid.conf setting.

There cannot be such setting because 204s outside of Preview are not
always possible. Squid will not buffer a 1GB object and then wait for
the ICAP server to decide what to do with it, for example.

However, Squid should support early ICAP responses. You can write your
server so that it starts spitting a 200 OK response back before it
receives the entire ICAP request. Please see ICAP errata for details and
caveats. This is the right way to implement read-only ICAP servers that
deal with large messages, IMO.

> It's too bad that Squid's
> ICAP implementation doesn't generate an error message after receiving
> a 204 when one is not allowed and preview is not enabled...

Please file a bug report in bugzilla if you have not already.

Thank you,

Received on Thu Dec 11 2008 - 18:49:11 MST

This archive was generated by hypermail 2.2.0 : Fri Dec 12 2008 - 12:00:07 MST