* On 10/10/05 20:09 -0700, Chris Fong wrote:
> Hi,
>
> I am currently using squid 2.5.STABLE9. I noticed that if my request has
> the "if-modified-since" header, server's 302 response becomes no longer
> cacheable. However, if I take out that header, the 302 response
> becomes cacheable again. However, if the response is 200 instead of
> 302, even with "if-modified-since" header, the response is still
> cacheable. I can't find anywhere in the specs specifying the above
> behavior. Also, I notice the code is doing it intentionally (only 200
> is cacheable). Am I missing something?
>
> /*
> * Handle If-Modified-Since requests from the client
> */
> if (mem->reply->sline.status != HTTP_OK) {
> debug(33, 4) ("clientCacheHit: Reply code %d != 200\n",
> mem->reply->sline.status);
> memFree(buf, MEM_CLIENT_SOCK_BUF);
> http->log_type = LOG_TCP_MISS;
> clientProcessMiss(http);
> }
>
> I would like to find a way to cache those 302 response even if the
> requests have "if-modified-since" header. Any suggestion?
I am sure you may be requested to look at the same code in STABLE10 and
STABLE11 and see if it acts the same, because fixes can only be applied
to latest branches, I think.
Configuring your Mail User Agent to wrap lines at around 74 characters
will be great!
-Wash
http://www.netmeister.org/news/learn2quote.html
-- +======================================================================+ |\ _,,,---,,_ | Odhiambo Washington <wash@wananchi.com> Zzz /,`.-'`' -. ;-;;,_ | Wananchi Online Ltd. www.wananchi.com |,4- ) )-,_. ,\ ( `'-'| Tel: +254 20 313985-9 +254 20 313922 '---''(_/--' `-'\_) | GSM: +254 722 743223 +254 733 744121 +======================================================================+ Pecor's Health-Food Principle: Never eat rutabaga on any day of the week that has a "y" in it.Received on Mon Oct 10 2005 - 23:41:10 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Nov 01 2005 - 12:00:04 MST