Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 41602 invoked from network); 21 May 2007 19:02:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 May 2007 19:02:39 -0000 Received: (qmail 22207 invoked by uid 500); 21 May 2007 19:02:41 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 22150 invoked by uid 500); 21 May 2007 19:02:41 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 22102 invoked by uid 99); 21 May 2007 19:02:41 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 May 2007 12:02:41 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [130.239.18.156] (HELO mail.acc.umu.se) (130.239.18.156) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 May 2007 12:02:32 -0700 Received: from localhost (localhost [127.0.0.1]) by amavisd-new (Postfix) with ESMTP id 83D3D9 for ; Mon, 21 May 2007 21:02:10 +0200 (MEST) Received: by mail.acc.umu.se (Postfix, from userid 12143) id 4FE5E2E; Mon, 21 May 2007 21:02:06 +0200 (MEST) Received: from localhost (localhost [127.0.0.1]) by mail.acc.umu.se (Postfix) with ESMTP id 42A6C16 for ; Mon, 21 May 2007 21:02:06 +0200 (MEST) Date: Mon, 21 May 2007 21:02:05 +0200 (MEST) From: Niklas Edmundsson To: dev@httpd.apache.org Subject: Re: mod_cache: Don't update when req max-age=0? In-Reply-To: <12262.84.233.182.145.1179760634.squirrel@www.sharp.fm> Message-ID: References: <12262.84.233.182.145.1179760634.squirrel@www.sharp.fm> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 8BIT X-Virus-Scanned: amavisd-new at acc.umu.se X-Virus-Checked: Checked by ClamAV on apache.org On Mon, 21 May 2007, Graham Leggett wrote: >> Since max-age=0 requests can't be fulfilled without revalidating the >> object they don't benefit from this header rewrite, and requests with >> max-age!=0 that can benefit from the header rewrite won't be affected >> by this change. >> >> Am I making sense? Have I missed something fundamental? > > At first glance, doing this I think will break RFC2616 compliance, and if > it does break RFC compliance then I think it should not be default > behaviour. However if it does solve a real problem for admins, then having > a directive allowing the admin to enable this behaviour does make sense. Why would it break RFC compliance? This request will never benefit of the headers being saved to disk, and the headers returned to the client should of course be those that resulted of the revalidation of the object. The only difference is that they aren't saved to disk too. The only difference I can see is that you can't "probe" that the previous request was a max-age=0 by doing max-age!=0 request afterwards... > Zooming out a little bit, this seems to fall into the category of "RFC > violations that allow the cache to either hit the backend less, or hit the > backend not at all, for the benefit of an admin who knows whet they are > doing". > > A simple set of directives that allow an admin to break RFC compliance > under certain circumstances in order to achieve certain goals does make > sense. Yup. CacheIgnoreCacheControl is one of those, we use it on the offloaders that only serves large files that we know doesn't need the RFC behaviour. /Nikke -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Niklas Edmundsson, Admin @ {acc,hpc2n}.umu.se | nikke@acc.umu.se --------------------------------------------------------------------------- Sir, We are receiving 285,000 Hails. � Crusher =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=