Search squid archive

Re: acl rep_header and icap respmod

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





2015-09-05 10:32 GMT-03:00 Antony Stone <Antony.Stone@xxxxxxxxxxxxxxxxxxxx>:
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@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users



--
Alfrenovsky
_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux