[squid-users] X-Next-Services

Moti Berger moberger at metanetworks.com
Thu Mar 25 13:06:41 UTC 2021


I want to be able to skip all subsequent ICAP servers defined in squid
based on some logic I have in one of my ICAP servers.
I used the X-Next-Services and it seems to control only the current ICAP
I also saw it while configuring two ICAP servers to handle requests and one
ICAP server to handle responses. When the header was sent from the first
ICAP on the request chain, the ICAP request didn't arrive at the second
ICAP server handling requests but did get to the ICAP server that handles
responses. I wish to also skip the ICAP which handles the responses.
Is that possible?

If not, is it possible for an ICAP server to add an ICAP header during
request handling to be read by the other ICAP servers that come after it
when they handle the same request or the same request's response?
I'm aware I can add a header to the encapsulated HTTP request, but this is
something I want to avoid because I don't want to have a performance hit
because I need to copy all HTTP request bodies for this header (I work in
zero-bytes preview mode).

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20210325/bd098c1c/attachment.htm>

More information about the squid-users mailing list