[squid-users] clientProcessHit
Amos Jeffries
squid3 at treenet.co.nz
Thu Mar 10 11:19:14 UTC 2016
On 10/03/2016 10:57 p.m., joe wrote:
>
>> Ah, you said you understood Vary. But this mail indicates that you do
>> not quite understand it well enough.
> i do understand may be the way sometime i try to explain it goes buggy lol
> like those bug any way
>
>> I prune away the extra headers to clarify:
>
>>> Firefox:
>
>>> GET /en_US/embeds.js HTTP/1.1
>>> Accept-Encoding: gzip, deflate
>
>>> HTTP/1.1 200 OK
>>> Vary: Accept-Encoding
>>> ----------------------------------------------------------
>
>> Chrome:
>
>>> GET /en_US/embeds.js HTTP/1.1
>>> Accept-Encoding: gzip, deflate, sdch
>
>> ... notice how Accept-Encoding changed.
>
>>> HTTP/1.1 200 OK
>>> Vary: Accept-Encoding
>
>
>> The Vary header tells Squid that these objects are to be stored with the
>> *content* of the requests Accept-Encoding header added to their URL on
>> the cache index.
>
>> The Accept-Encoding details are effectively being added to the URL
>> query-string without actually being added to the public URL users see.
> yup
>> Since the Accept-Encoding headers are different on the Chrome requests
>> these objects are as different in cache.
> yup
>> Firefox shares Accept-Encoding value with IE, and with some command-line
>> tools. So they have no problems caching for one and re-using the cached
>> object for another.
> yup
>> But Chome do the Google sdch thing, so it cant use those objects and has
>> to have a separate object cached just for Google products.
>
> yup but event if i force gzip only as
> # Normalize Accept-Encoding to support compression for better caching
> request_header_access Accept-Encoding deny all
> request_header_replace Accept-Encoding gzip
Manipulating what Squid sends to the server does not affect what the
client has sent to Squid earlier.
The server sends back to Squid the same response in all cases. Caching
those same instructions will always have the same outcome on future
requests.
>
> chrome still get miss so its forcing the use of Google sdch or what im
> missing
>
> so what will happen. dose chrome use this instead of gzip
> since Vary: Accept-Encoding ar same reply
> and squid request only gzip
> and all reply Vary: Accept-Encoding is it bad ?? to do so ?? for other app
> in mobile
>
The server is sending back gzip content. It was the very act of Chrome
telling Squid that is supported sdch that leads to the difference.
The odd part is that it says "Not a Vary match" when it does find
something in the cache for the Chrome objects location.
Amos
More information about the squid-users
mailing list