Re: Cache-Control: max-age on client side?

From: Joe Cooper <joe@dont-contact.us>
Date: Fri, 08 Mar 2002 06:33:00 -0600

Robert Collins wrote:
>
>>-----Original Message-----
>>From: Joe Cooper [mailto:joe@swelltech.com]
>>Sent: Friday, March 08, 2002 11:15 PM
>>To: squid-dev@squid-cache.org
>>Subject: Cache-Control: max-age on client side?
>>
>>
>>Hey guys,
>>
>>Quick question: Does Squid handle Cache-Control: max-age on
>>the client
>>side?
>>
>>I'd like to be able to force a revalidation (without forcing a full
>>reload) from a client side request...As far as I can tell
>>from reading
>>the code, only server side Cache-Control: proxy-revalidate and
>>must-revalidate and max-age are supported for this. But I
>>don't quite
>>understand what's happening in http.c WRT max-age and other
>>cache-control headers, so I may be missing it.
>>
>
> No comment, I'd need to go check the code. See client_side as well
> though.

It isn't in client_side...which is where my assumption that it isn't
supported comes from. (There is no REVALIDATE stuff in client_side at all.)

>>Also, I seem to be hitting a weirdness in client/squidclient
>>when using
>>the -H option--I was trying to test using max-age, but found
>>whenever I
>>append a header to the client request using the -H option it
>>just hangs
>>for about 30 seconds and then returns with nothing, and
>>nothing shows up
>>in the access log. Taking out the -H section makes the request work,
>>and changing the -H to a 'Cache-Control: no-cache' exhibits the same
>>behavior. Squid version is 2.4STABLE4.
>>
>
> Don't forget the \n in the header!.

That'll be the problem! Thanks!

-- 
Joe Cooper <joe@swelltech.com>
http://www.swelltech.com
Web Caching Appliances and Support
Received on Fri Mar 08 2002 - 05:34:08 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:14:50 MST