Search squid archive

Re: Why is Cache-Control: max-age added to forwarded HTTP requests?

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

 




On Wed, Jan 19, 2011 at 9:21 PM, Amos Jeffries wrote:
On 20/01/11 08:29, John Craws wrote:

Hi,

After observing this, I have been going through RFC 2616, the squid
documentation, mailing list archives and various google results.

It's still not completely clear to me: why is squid adding a
Cache-Control with max-age defined in cases where the original client
request does not contain one.
Why for a request? What is the intended behavior / desired result?

Thank you!

John Craws

Which Squid version? there are different behaviours for different versions.


On 21/01/11 05:07, John Craws wrote:
> Hi,
>
> Squid versions 3.1.9/3.1.10.
>
> Thank you,
>
> John Craws
>

It looks from the code to be there to ensure the result is either within the local proxies cacheable age range (according to refresh_pattern) or to get all the way back to the origin for brand new data.

Not exactly one of the optimal things to do, but it guarantees that fresh content will come back. If you can come up with a better alternative please mention it in squid-dev so we can improve things.

Amos
--
Please be using
  Current Stable Squid 2.7.STABLE9 or 3.1.10
  Beta testers wanted for 3.2.0.4


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

  Powered by Linux