Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 93609 invoked from network); 17 May 2007 23:31:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 May 2007 23:31:17 -0000 Received: (qmail 61059 invoked by uid 500); 17 May 2007 23:31:20 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 61010 invoked by uid 500); 17 May 2007 23:31:19 -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 60999 invoked by uid 99); 17 May 2007 23:31:19 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 May 2007 16:31:19 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.9] (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 17 May 2007 16:31:13 -0700 Received: (qmail 93482 invoked by uid 2161); 17 May 2007 23:30:52 -0000 Received: from [192.168.2.4] (euler.heimnetz.de [192.168.2.4]) by cerberus.heimnetz.de (Postfix on SuSE Linux 7.0 (i386)) with ESMTP id 693C01721C for ; Fri, 18 May 2007 01:22:48 +0200 (CEST) Message-ID: <464CE3DB.9040206@apache.org> Date: Fri, 18 May 2007 01:23:07 +0200 From: Ruediger Pluem User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.13) Gecko/20060417 X-Accept-Language: de, en, de-de, en-gb, cy, zu, xh MIME-Version: 1.0 To: dev@httpd.apache.org Subject: Re: svn commit: r539063 - in /httpd/httpd/trunk: CHANGES modules/cache/mod_cache.c References: <20070517182515.57DC71A983E@eris.apache.org> <464CBF2E.1000003@apache.org> <5c902b9e0705171356m4d2fbb80g22e0122c8b46036@mail.gmail.com> <464CCB8C.4090109@apache.org> <5c902b9e0705171453q6729315dp584d1309e423e13e@mail.gmail.com> <5786CA45-CA4B-403F-AFEB-A959087E4418@gbiv.com> In-Reply-To: <5786CA45-CA4B-403F-AFEB-A959087E4418@gbiv.com> X-Enigmail-Version: 0.90.2.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org On 05/18/2007 12:19 AM, Roy T. Fielding wrote: > On May 17, 2007, at 2:53 PM, Justin Erenkrantz wrote: > >> BTW, I'm not a fan of us inventing Expires headers in this section of I don't want to pick on you, but ironically it was you who introduced this :-) (http://svn.apache.org/viewvc?view=rev&revision=152973). >> code - I'd think it'd be far cleaner to off-load Expires response >> header generation to mod_expires and leave the cache out of it >> entirely - inventing Expires values deep inside of mod_cache seems >> unclean. mod_cache, IMO, should just respect what it is told and not >> change how things appear to downstream folks. (mod_expires is more >> than capable of inserting in the Expires header if the admin wants >> it.) > > > I agree -- caches are not allowed to invent header fields like Expires. > They can only do so by explicit override in the configuration > (mod_expires). > Setting Expires here is wrong. Changing max-age would be even worse. > Age is the only thing the cache should be setting. > >> Does my position make sense? I'm of the opinion that we should go one >> of two ways: >> >> - mod_cache shouldn't touch the response - so it stops setting Expires >> or anything like that which affects cachability > > > +1 Ok. So we should remove the apr_rfc822_date(expire_hdr, exp); apr_table_set(r->headers_out, "Expires", expire_hdr); lines there. Just for clarification: It is still ok for us to define an cache internal expiration date (default / calculated) if there is nothing valid (max-age, Expires) in the response, right? We just do not tell the client about it as we do not adjust the headers in the response accordingly. BTW: What about s-max-age here? Shouldn't we use s-maxage instead of max-age in the case it is present in the response? Regards RĂ¼diger