Re: [squid-users] Override the Accept-Encoding value

From: Henrik Nordstrom <henrik_at_henriknordstrom.net>
Date: Tue, 21 Oct 2008 15:08:08 +0200

On tis, 2008-10-21 at 14:55 +0200, Christian Tzolov wrote:
> Hi all,
>
> I would like to reduce the diversity of Accept-Encoding request header
> values by replacing the header with a hardcoded value like:
> "gzip,deflated".
>
> In Squid 2.6 there are two directives that seems sutible for the job:
> header_access and heaer_replace. Will the following configuration do the
> job?
>
> header_access Accept-Encoding deny all
> header_replace Accept-Encoding gzip,deflated
>
> If yes are they replaced before or after squid cache the entry?

heder_access/replace is only applied on forwarded requests, modifying
the headers as sent by Squid. They do not modify Squid's own view of
received headers.

Regards
Henrik

Received on Tue Oct 21 2008 - 13:08:19 MDT

This archive was generated by hypermail 2.2.0 : Wed Oct 22 2008 - 12:00:04 MDT