Re: [squid-users] Why is Cache-Control: max-age added to forwarded HTTP requests?

From: Henrik Nordström <henrik_at_henriknordstrom.net>
Date: Mon, 24 Jan 2011 21:37:37 +0100

mån 2011-01-24 klockan 10:44 -0500 skrev John Craws:
> Hi Amos,
>
> Thank you for your reply.
>
> I am wondering if squid should still be doing this if, as in my
> particular case, caching is disabled on the proxy instance.
>
> Based on my observations, it does.

It's been discussed from time to time if we should stop doing this, with
no final conclusion. But I think I agree that adding max-age adds more
confusion than it fixes.

The code in question is in http.cc
HttpStateData::httpBuildRequestHeader(). Look for "Add max-age only".
(line 1789 in trunk today)

Regards
Henrik
Received on Mon Jan 24 2011 - 20:37:41 MST

This archive was generated by hypermail 2.2.0 : Tue Jan 25 2011 - 12:00:03 MST