Re: [squid-users] squid and accept-encoding gzip,deflate

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Tue, 21 Oct 2008 00:27:34 +1300

Aviral Pandey wrote:
> Thanks Henrik...But I have seen vice-versa to be working i.e., server
> sending a gzipped response and squid serving deflated one when client
> asks for deflated content....

Are you sure? squid does _transfer_ chunked decoding. But thats special
compression only 'zipped' between the web server and Squid (and web
server is broken to be trying it with Squid anyway).

...or perhapse you have a version of that gzip patch applied. It's not new.

... or maybe you hit the Vary: bug where squid always presented the
deflate copy no matter what once it received the first deflate copy. :(

Amos

>
> My squid is 2.6-16.
>
>
> Thanks,
> Avi
> http://aviral.piworx.com
>
> Henrik Nordstrom wrote:
>> On mån, 2008-10-20 at 15:23 +0530, Aviral Pandey wrote:
>>
>>> When my client asks for Accept-Encoding: gzip, deflate, squid is
>>> sending it raw content. Shouldn't it gzip and then send?
>>>
>>
>> No, Content-Encoding (just as Content-Languate) is a task of webservers,
>> not semantically transparent proxies such as Squid.
>>
>>
>>> Is there a way in which this can be achieved?
>>>
>>
>> There is an addon for squid-3, but it apparently needs a bit of work to
>> apply to current Squid-3 sources.
>>
>> Regards
>> Henrik
>>
>

-- 
Please use Squid 2.7.STABLE4 or 3.0.STABLE9
Received on Mon Oct 20 2008 - 11:27:38 MDT

This archive was generated by hypermail 2.2.0 : Mon Oct 20 2008 - 12:00:04 MDT