Re: [squid-users] vary:* header and mod_gzip

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Fri, 19 Mar 2004 09:55:14 +0100 (CET)

On Fri, 19 Mar 2004 alpheus@gmx.de wrote:

> hi, i am using squid 2.5S4.
> as a webserver, i am using apache 1.3.29 together with mod_gzip (newest
> version).
>
> if my webserver responds with a vary:* header, this reply is cached by
> squid, and all subsequent request, with accept-encoding:gzip header or
> not, are cached until i refresh the object.
>
> i thought i had read, that squid will NOT cache objects with vary:*
> header, but in my configuration it does. i verify this with a request
> like
>
> echo -e "GET /index.html HTTP/1.0\naccept-encoding:gzip\n\n" | netcat proxy
> 80
> and see a proxy hit together with vary:*.
>
> do i understand something wrong???

This is a bug.. actually already registered in the bug database as Bug
#426 but for some reason I overlooked this for 2.5.STABLE5.. (I probably
thought it was about the other issue that "Vary: *" can not match... not
that these was cached)

I have now uploaded a patch for this issue. Please give it a test.

I have not tested what happens with existing "Vary: *" objects in the
cache but I think it should work for these as well.

Regards
Henrik
Received on Fri Mar 19 2004 - 01:55:16 MST

This archive was generated by hypermail pre-2.1.9 : Thu Apr 01 2004 - 12:00:02 MST