[squid-users] acl rep_header and icap respmod

Alfredo Rezinovsky alfrenovsky at gmail.com
Sat Sep 5 13:41:49 UTC 2015


2015-09-05 10:32 GMT-03:00 Antony Stone <Antony.Stone at squid.open.source.it>:

> On Saturday 05 September 2015 at 15:29:28, Alfredo Rezinovsky wrote:
>
> > I'm trying to adapt response for all text/html responses.
> >
> > icap_service service_respmod respmod_precache
> > icap://127.0.0.1:1344/response
> >
> > acl html rep_header -i Content-Type text\/html
> > adaptation_access service_respmod allow html
> >
> > And it doesn't works.
> >
> > The strange thing is that it does works with:
> >
> > acl html rep_mime_type text\/html
> >
> > There should be something i'm missing
>
> Shouldn't there be a colon in "Content-type: text/html"?


Found it

The case insensitive is the regex, not the header name

RIGHT: acl html rep_header Content-Type -i text\/html
WRONG: acl html rep_header -i Content-Type text\/html



Antony.
>
> --
> "Linux is going to be part of the future. It's going to be like Unix was."
>
>  - Peter Moore, Asia-Pacific general manager, Microsoft
>
>                                                    Please reply to the
> list;
>                                                          please *don't* CC
> me.
> _______________________________________________
> squid-users mailing list
> squid-users at lists.squid-cache.org
> http://lists.squid-cache.org/listinfo/squid-users
>



-- 
Alfrenovsky
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20150905/487d0b83/attachment.html>


More information about the squid-users mailing list