[squid-users] How to use http_status acl?

Felipe Arturo Polanco felipeapolanco at gmail.com
Tue Nov 5 20:06:03 UTC 2019


Hi,

I have been trying to match http_status acl in my squid.conf file but it
has no effect.

My goal is to add a given header to specific HTTP return codes.

eg:
This works:
acl user1 src 192.168.0.6/32
reply_header_add Cache-Control "no-store" user1

This doesn't work:
acl 307_redirect http_status 307
reply_header_add Cache-Control "no-store" 307_redirect

Any ideas on what could I be missing here?

Thanks,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20191105/25d4d8ed/attachment.html>


More information about the squid-users mailing list