Re: [squid-users] "unset" or "remove" cookies on static content from the backend server

From: Ralph Lawrence <ralphlaw_at_gmail.com>
Date: Thu, 26 Jan 2012 21:58:31 -0500

Hi Amos,

Thanks for the quick reply.

On Thu, Jan 26, 2012 at 9:48 PM, Amos Jeffries <squid3_at_treenet.co.nz> wrote:
> To drop the whole header its simply:
>  request_header_access Cookie deny all
>  reply_header_access Set-Cookie deny all

How can I conditionally apply these rules on certain URLs?  Is there a
Regex part I can attach to your rules above?

E.g. Only apply on "*.png" or on "*.css"?

E.g. Or apply on URLs ending with "*.png" except when they also
contain "/wp-admin/"?

Best regards,
Kervin
Received on Fri Jan 27 2012 - 02:58:39 MST

This archive was generated by hypermail 2.2.0 : Fri Jan 27 2012 - 12:00:03 MST