Search squid archive

Re: Responses to squidclient and browser are different

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 7/12/2013 12:10 p.m., mangpo wrote:
> I config the squid cache such that it caches pretty much everything and
> pretends those pages are fresh for a long time.

This is a Very Bad Idea, but your problem happens regardless of what you
configure so I will skip that for now...


<snip>

> refresh_pattern ^http: 600000 100% 700000 override-expire override-lastmod
> reload-into-ims ignore-reload ignore-no-cache ignore-private ignore-no-store
> ignore-must-revalidate ignore-auth
> 

<snip>

> However, when I tried to load http://techcrunch.com, I did not get the same
> stale page that I got when using squidclient. The browser always gave me a
> real fresh page.
> 
> Why is it doing that? How can I make the browser respond with content in the
> cache? Please help!


Because "Vary:Cookie" the object returned for that URL changes depending
on content encoded inside the Cookie headers.

Cookie is so large and changes so easily that there are nearly an
infinite number of objects cached for that one URL. HIT'ing on a
previously cached copy is highly unlikely.

Amos





[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux