Re: Call for Adoption: SEARCH method

Mark Nottingham <mnot@mnot.net> Fri, 06 November 2020 23:26 UTC

Return-Path: <ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 1D7D43A0E3E for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 6 Nov 2020 15:26:22 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.748
X-Spam-Level:
X-Spam-Status: No, score=-2.748 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, MAILING_LIST_MULTI=-1, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=mnot.net header.b=EV7WZfsh; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=GmyDwdXd
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rt05DWMqrOwC for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 6 Nov 2020 15:26:20 -0800 (PST)
Received: from lyra.w3.org (lyra.w3.org [128.30.52.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 87D913A0E3D for <httpbisa-archive-bis2Juki@lists.ietf.org>; Fri, 6 Nov 2020 15:26:20 -0800 (PST)
Received: from lists by lyra.w3.org with local (Exim 4.92) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1kbB5G-00024L-SP for ietf-http-wg-dist@listhub.w3.org; Fri, 06 Nov 2020 23:23:55 +0000
Resent-Date: Fri, 06 Nov 2020 23:23:54 +0000
Resent-Message-Id: <E1kbB5G-00024L-SP@lyra.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by lyra.w3.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <mnot@mnot.net>) id 1kbB5F-00023a-2y for ietf-http-wg@listhub.w3.org; Fri, 06 Nov 2020 23:23:53 +0000
Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <mnot@mnot.net>) id 1kbB5D-0002q5-8m for ietf-http-wg@w3.org; Fri, 06 Nov 2020 23:23:52 +0000
Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 6C8EE5C00B9; Fri, 6 Nov 2020 18:23:38 -0500 (EST)
Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Fri, 06 Nov 2020 18:23:38 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mnot.net; h= content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; s=fm1; bh=V JApvhxn/4O7Bll7sYVKB8+fb6r1IaP31ayPWBFR+hc=; b=EV7WZfshd0GH20kk1 Hh5KfTXYmuXI1330PAJxUcxhVYiGvy7DlYkmcNJ0/nmktqqRBMEQYq16qQ8q7rP3 5hOsP/sKZs2g1OKTkrDqPN8EqnMujzeT4VBfeOIDA0VLxMcbLD3WkQ86gL7YAw2u V6xdaStuprDIgfDfLgUpywFb2RP4igTWNwQt+SVa0U67m4IZcgY1YMbfd3Qz4u4b gp68bAFyx/WY/7jNRYWyKQ432pZe25oVwtAjOalxrRxsg17aX3RVjfl8szGrTw3m 456cEBGzZbpjQHZojVMwJL8yqEbiLt+2H6ncpTkXLxTsCRjALfeVmwQzHvV4XAgn hxGvw==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=VJApvhxn/4O7Bll7sYVKB8+fb6r1IaP31ayPWBFR+ hc=; b=GmyDwdXdm3/u6UbMDlCQwbDdkO6LZy7F2ou3RcwCVNQUUjcWXPwrdImal pH9wW/ZAX+cUZw5nQ7HK1mmsqNopDpQT20/W1oNLsVKQepGvwWVe1eGY8vTh0NR8 HwJ1zGMgJ77Kl43t2x3chBdAyTnUcVjgWqm681+f3/+1INWNi/22CLpSSzcxyJAQ lqNDRveVPynGuSfrstKiWsN3hI6EB/bGgCJLx0DtXi3ZE5UrKDgvzEyhLVNKmWnp XYy3UlJMWWGeDFlkWVE4IXutkT9WLivtbxq+MRXyEK2Q89JBnJ71LBnDtDoXRnBZ fyEDe81l8wCLc8qDhDncaLOBijjoA==
X-ME-Sender: <xms:-dqlX-IuJBylwBvErXuZrGtDpZoKQPXy_JTJPrarB0x7JZBJrQ5CFQ> <xme:-dqlX2Ie1fkNAlG0YZJPqwhNFZxbJ4WhA0muUSSnI127y3eix4JxH36U0SnRo7Ax- Gr4RwCfsqacdgVczw>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedruddutddgtdejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurheptggguffhjgffgffkfhfvofesthhqmhdthhdtvdenucfhrhhomhepofgrrhhk ucfpohhtthhinhhghhgrmhcuoehmnhhothesmhhnohhtrdhnvghtqeenucggtffrrghtth gvrhhnpeevffffhfduteevvefhueffieegtdeutdehffeltefffedttdeggeejheeiueet teenucffohhmrghinhepmhhnohhtrdhnvghtnecukfhppeduudelrddujedrudehkedrvd ehudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehm nhhothesmhhnohhtrdhnvght
X-ME-Proxy: <xmx:-dqlX-tTws4og5UPCx6Hlp_jr7Y7BCCVtyDsma6VOIQKqGb_1yjLSQ> <xmx:-dqlXzZJqgtXAB4ptElgBoP0XH0zsqQrfJsWFiLkSXWuLuWh1JOVVA> <xmx:-dqlX1Z0U4P3hZ-irc_cLpp0_GIhvZ26SULLp4WJ4UUFrTgvWSMoiQ> <xmx:-tqlX0VvyxL-iKY7jv7c-qxAFWxuzS23mD0KQdhBTK-X96Vcnt9N2A>
Received: from [192.168.7.30] (119-17-158-251.77119e.mel.static.aussiebb.net [119.17.158.251]) by mail.messagingengine.com (Postfix) with ESMTPA id 5156732803D4; Fri, 6 Nov 2020 18:23:36 -0500 (EST)
Content-Type: text/plain; charset="us-ascii"
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\))
From: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <CAHbrMsCDkq7ZQESd=GxNg_p5MKXU=YVd2aGWPiPWwmRpBhJuuA@mail.gmail.com>
Date: Sat, 07 Nov 2020 10:23:33 +1100
Cc: James M Snell <jasnell@gmail.com>, Glenn Block <Glenn.Block@microsoft.com>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <34F73C71-1AEC-40C2-A930-A797DB619057@mnot.net>
References: <BN3PR00MB00836EFFA09F8E564E923A5CE8EF1@BN3PR00MB0083.namprd00.prod.outlook.com> <CABP7Rbe18spVLQTS+JdgmcM-FcyGHkWVpg4AK_a+p05i7iQznQ@mail.gmail.com> <CAHbrMsCDkq7ZQESd=GxNg_p5MKXU=YVd2aGWPiPWwmRpBhJuuA@mail.gmail.com>
To: Ben Schwartz <bemasc@google.com>
X-Mailer: Apple Mail (2.3608.120.23.2.4)
Received-SPF: pass client-ip=66.111.4.27; envelope-from=mnot@mnot.net; helo=out3-smtp.messagingengine.com
X-W3C-Hub-Spam-Status: No, score=-9.8
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_IRR=-3, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1kbB5D-0002q5-8m 509325482f37b977f18f304346278c73
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Call for Adoption: SEARCH method
Archived-At: <https://www.w3.org/mid/34F73C71-1AEC-40C2-A930-A797DB619057@mnot.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/38197
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <https://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On 7 Nov 2020, at 8:02 am, Ben Schwartz <bemasc@google.com> wrote:
> 
> James, according to RFC 7234 Section 3:
>    A cache MUST NOT store a response to any request, unless:
>    o  The request method is understood by the cache and defined as being
>       cacheable
> 
> I think it follows that you do not need to declare this method non-cacheable; you can declare it cacheable when keyed by exact match on the body.  Existing intermediaries will not cache it anyway, since they do not understand the method.

I'm hoping we can do better than that. E.g., the request media type can define how it can be canonicalised into input for the cache key.. Or a response header might describe how to do it, a la Variant.

But that's getting ahead of the CfA...

Cheers,

--
Mark Nottingham   https://www.mnot.net/