Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 45801 invoked from network); 14 Feb 2011 08:28:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 Feb 2011 08:28:30 -0000 Received: (qmail 21090 invoked by uid 500); 14 Feb 2011 08:28:29 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 20160 invoked by uid 500); 14 Feb 2011 08:28:26 -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 20152 invoked by uid 99); 14 Feb 2011 08:28:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Feb 2011 08:28:24 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [208.97.132.202] (HELO homiemail-a35.g.dreamhost.com) (208.97.132.202) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Feb 2011 08:28:18 +0000 Received: from homiemail-a35.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a35.g.dreamhost.com (Postfix) with ESMTP id E19FF54058 for ; Mon, 14 Feb 2011 00:27:57 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gbiv.com; h=content-type :mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; q=dns; s= gbiv.com; b=NH9TY7fYvs7Xn9fwDHofNmEIhnsdMhktsV3UNT2SzYILC92K2Xuz S5MSnLZoYkE5VSzTMtVkGWb/90vTWmk7DHhMfAy4oZdG4MghJSpcBiz3M2mJMPCQ azQ0ozS0o/tq3mvDEmwoUcmOwWVisQLOrpilTGPWUEfCtZDGNNAelb0= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gbiv.com; h=content-type :mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; s=gbiv.com; bh=Bsy5jLvO+bAXwgRnDLIzeL5KZTw=; b=hue95P1DFpsmnURhl2lywu0DY5K0 bf1B/52RGoNpOEBmyVc8zsMEJjntTjK8iTBVFISdoxMl1EHhFJoQzng1DHBtd04u atuFOy0J1SUW+RuxwHNJQbYG8hDDwfM0RWll7Qe4lTKvhAkqjJ/42AZppga9sKcf BIpfET0rzdxuePA= Received: from [192.168.1.84] (99-21-208-82.lightspeed.irvnca.sbcglobal.net [99.21.208.82]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: fielding@gbiv.com) by homiemail-a35.g.dreamhost.com (Postfix) with ESMTPSA id AAB9154057 for ; Mon, 14 Feb 2011 00:27:57 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1082) Subject: Re: svn commit: r1070179 - in /httpd/httpd/trunk: CHANGES docs/manual/mod/mod_cache.xml modules/cache/cache_storage.c modules/cache/cache_storage.h modules/cache/mod_cache.c modules/cache/mod_cache.h From: "Roy T. Fielding" In-Reply-To: <823F6C2D-68BA-4358-937F-8B70BB186719@sharp.fm> Date: Mon, 14 Feb 2011 00:27:57 -0800 Content-Transfer-Encoding: quoted-printable Message-Id: <8754DDEA-5EF9-460B-84C8-39C7D77A72B3@gbiv.com> References: <20110213020330.953172388900@eris.apache.org> <5E44EE80-76CD-4743-B57E-AF90FF0F97EC@gbiv.com> <823F6C2D-68BA-4358-937F-8B70BB186719@sharp.fm> To: dev@httpd.apache.org X-Mailer: Apple Mail (2.1082) On Feb 13, 2011, at 5:03 AM, Graham Leggett wrote: > On 13 Feb 2011, at 9:59 AM, Roy T. Fielding wrote: >=20 >>> URL: http://svn.apache.org/viewvc?rev=3D1070179&view=3Drev >>> Log: >>> mod_cache: When a request other than GET or HEAD arrives, we must >>> invalidate existing cache entities as per RFC2616 13.10. PR 15868. >>=20 >> Cache entries should not be invalidated unless the response comes >> back as a success (2xx). Likewise, it only applies to methods with >> known write effects (not including TRACE, OPTIONS, PROPFIND, etc.). >>=20 >> This has already been updated in httpbis p6. >=20 > Hmmm... >=20 > So is it right to say that POST, PUT and DELETE should invalidate, = while all others would be left alone? >=20 > Or do we need some kind of mechanism for modules that respond to new = methods to declare those methods as needing to be invalidated or not? Well, I thought I could answer that with a simple link to the drafts, but they just got changed in the wrong direction. It should be implemented as invalidating when the response is 2xx and the method is *not* one of the safe ones (GET, HEAD, OPTIONS, TRACE, PROPFIND, and maybe REPORT). That way, a new extension method would invalidate on success. > Should the cache try and cache any of the other methods, or is = cacheability limited to GET only? It can cache other methods if it knows how to. PROPFIND is probably the only other method worth caching, but its key depends on a bunch of webdav stuff outside the URI. ....Roy=