Re: Call for Adoption: SEARCH method

Ben Schwartz <bemasc@google.com> Fri, 06 November 2020 21:05 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 4B73D3A0D29 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 6 Nov 2020 13:05:32 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.249
X-Spam-Level:
X-Spam-Status: No, score=-10.249 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, HTML_MESSAGE=0.001, MAILING_LIST_MULTI=-1, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=google.com
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 VaYK6siLknKJ for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 6 Nov 2020 13:05:30 -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 356463A0C54 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Fri, 6 Nov 2020 13:05:29 -0800 (PST)
Received: from lists by lyra.w3.org with local (Exim 4.92) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1kb8sp-0000Jg-Mh for ietf-http-wg-dist@listhub.w3.org; Fri, 06 Nov 2020 21:02:55 +0000
Resent-Date: Fri, 06 Nov 2020 21:02:55 +0000
Resent-Message-Id: <E1kb8sp-0000Jg-Mh@lyra.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by lyra.w3.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <bemasc@google.com>) id 1kb8so-0000Iu-FE for ietf-http-wg@listhub.w3.org; Fri, 06 Nov 2020 21:02:54 +0000
Received: from mail-io1-xd2d.google.com ([2607:f8b0:4864:20::d2d]) by titan.w3.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from <bemasc@google.com>) id 1kb8sm-0008Ig-Bu for ietf-http-wg@w3.org; Fri, 06 Nov 2020 21:02:54 +0000
Received: by mail-io1-xd2d.google.com with SMTP id j12so2903623iow.0 for <ietf-http-wg@w3.org>; Fri, 06 Nov 2020 13:02:51 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=nriUKDK0gXy18P2sO38LarUODDuVNEbU+lPET4+V9qQ=; b=IDX/Zd3dNFpNjorUpDqP96wJiBNBbjNRCdJo3vzkV5rPEfDzqlt6yoCwt7zQA7UrjM XOymq+QLa+dKXZjnpOP2Kj8/lvjgy4wJ4+aatapI/zYD9d0yN+9j5Fl+Mt97UdJZ+ZKb dh+ALzRef5+lEpqkRtUfTx+tyE5wNHeWTYfR+J+uGa8y5JcAY5ySDgjsiRdV/6EBE8zo fHCaN9Ghd5hr+mwtIfLrDSAMd4rGfS4/UAs/M8EsxoQBPCN2kcwQ0+sELVZoM0iBnKI1 qiJ9N/BEbOfADSF2xxSNrgHPIsjTtYa1IJHy+nCIwDl4g6Vy/w6Kq6f/KawLTqG4nZsp qjOw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=nriUKDK0gXy18P2sO38LarUODDuVNEbU+lPET4+V9qQ=; b=T73mxeLZH6OO0waA/oG9tAQoBpUGSlEep+udiFlNiq/WHfxqqfj8um6dYHsKZERbjC JHEylE1o6UDhNWhzj12WWdM0Jj1l1bTBQN/KDoZqaeLM+sNBBPFexulxew70fDe1wHBG JRiZu61DHhiBRxGJempgPIrdscxZDs+ZRqqr1brpI6/4tqAVCjxdQ5x5jrgvJgNDQmdi zV0t30JFXdWjgpa54vZ9FjAc+cEEGlEA0z9NU4Z1CayKhdDgnivv4bF4lO6gONuVYwD2 ScYfU3JUyotR46UotMdLA9L+5Ie+m+di/Bi49GIATfOSfsV0FTRYScWXTeewE7hIjqqo XcYg==
X-Gm-Message-State: AOAM53354mL1CSqzy3aI2qujAmXYxx1m5BPWv6qPSVLr3iePNgZI8Ium 17d/UkWVkZSw/mzH94ZJMPQXA1o4xp+4laHWToo15g==
X-Google-Smtp-Source: ABdhPJxcyxtQKF9P3GrvJvCrz2ypUmhs11ZVdYPpBR7ufX3KkCqTUfxAXqdoeTKEpuOT2uKVvltPxI14yGOl160tZko=
X-Received: by 2002:a05:6602:208f:: with SMTP id a15mr2842133ioa.91.1604696560870; Fri, 06 Nov 2020 13:02:40 -0800 (PST)
MIME-Version: 1.0
References: <BN3PR00MB00836EFFA09F8E564E923A5CE8EF1@BN3PR00MB0083.namprd00.prod.outlook.com> <CABP7Rbe18spVLQTS+JdgmcM-FcyGHkWVpg4AK_a+p05i7iQznQ@mail.gmail.com>
In-Reply-To: <CABP7Rbe18spVLQTS+JdgmcM-FcyGHkWVpg4AK_a+p05i7iQznQ@mail.gmail.com>
From: Ben Schwartz <bemasc@google.com>
Date: Fri, 06 Nov 2020 16:02:29 -0500
Message-ID: <CAHbrMsCDkq7ZQESd=GxNg_p5MKXU=YVd2aGWPiPWwmRpBhJuuA@mail.gmail.com>
To: James M Snell <jasnell@gmail.com>
Cc: Glenn Block <Glenn.Block@microsoft.com>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg="sha-256"; boundary="000000000000836d9805b37688b1"
Received-SPF: pass client-ip=2607:f8b0:4864:20::d2d; envelope-from=bemasc@google.com; helo=mail-io1-xd2d.google.com
X-W3C-Hub-Spam-Status: No, score=-20.6
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, ENV_AND_HDR_SPF_MATCH=-0.5, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5, USER_IN_DEF_SPF_WL=-7.5, W3C_AA=-1, W3C_DB=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1kb8sm-0008Ig-Bu 3d3e265d0b0dcff822809438e58d5a46
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Call for Adoption: SEARCH method
Archived-At: <https://www.w3.org/mid/CAHbrMsCDkq7ZQESd=GxNg_p5MKXU=YVd2aGWPiPWwmRpBhJuuA@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/38196
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>

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.

On Fri, Nov 6, 2020 at 3:52 PM James M Snell <jasnell@gmail.com> wrote:

> Yes, essentially. The caching restriction applies only to HTTP
> intermediaries and exists largely because existing intermediaries have
> no existing way of caching based on the body of the request.
> Applications, however, can cache however they see fit.
>
> On Thu, Nov 5, 2020 at 8:34 AM Glenn Block <Glenn.Block@microsoft.com>
> wrote:
> >
> > Looking again over the spec, I see that it specifically states in
> section 2 the response is NOT cacheable:
> >
> >  The response to a SEARCH request is not cacheable.  It ought to be
> >    noted, however, that because SEARCH requests are safe and idempotent,
> >    responses to a SEARCH MUST NOT invalidate previously cached responses
> >    to other requests directed at the same effective request URI.
> >
> >
> > Right after that, the draft states it supports conditional SEARCH,
> IF-Match etc.
> >
> > Am I correct that this means that a server can return an ETAG with a
> response, and the client can technically cache that along with the ETAG and
> use the ETAG in a subsequent conditional SEARCH?
> >
> > Glenn Block (he/him/his) | M365 Core Ecosystem | @gblock | Principal PM
> Lead | Schedule with me!
>
>