Re: [squid-users] acl defined with rep_header used to deny cache is not working

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Thu, 14 Nov 2013 00:27:25 +1300

On 13/11/2013 10:42 p.m., susu wrote:
> Hi All,
>
> I am using squid as a cache and I don't want to cache anything coming from a
> windows media server.
> So I have put following rules in squid.conf :
>
> acl windows_server rep_header -i Server -i ^Cougar
> cache deny windows_server
>
> But it is not working. I have checked with wireshark that the response
> header contains the field
>
> Server : Cougar 4.1.0.3917\r\n
>
> But still it is not working the file getting cached. Do you have any idea
> why this is not working?

Because cache allow/deny control is based on the request in current
releases of Squid.

We have a proposal currently going through audit for adding reply based
allow/deny. That should be available in Squid-3.5 series when that
process is completed.

> Can you suggest any alternative by which I can disable caching for any
> response from windows media server?

Why does it matter?

Amos
Received on Wed Nov 13 2013 - 11:27:32 MST

This archive was generated by hypermail 2.2.0 : Wed Nov 13 2013 - 12:00:03 MST