Re: No-Vary-Search

Rory Hewitt <rory.hewitt@gmail.com> Tue, 18 June 2024 22:45 UTC

Received: by ietfa.amsl.com (Postfix) id BE237C1840EA; Tue, 18 Jun 2024 15:45:27 -0700 (PDT)
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 BD7A3C1840E7 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 18 Jun 2024 15:45:27 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.859
X-Spam-Level:
X-Spam-Status: No, score=-2.859 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, HTML_MESSAGE=0.001, MAILING_LIST_MULTI=-1, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=w3.org header.b="IrM2v3JH"; dkim=pass (2048-bit key) header.d=w3.org header.b="V0gsPB8E"; dkim=pass (2048-bit key) header.d=gmail.com header.b="mJj885v2"
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id up_hdb8bOlZj for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 18 Jun 2024 15:45:27 -0700 (PDT)
Received: from mab.w3.org (mab.w3.org [IPv6:2600:1f18:7d7a:2700:d091:4b25:8566:8113]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 06222C1840C0 for <httpbisa-archive-bis2Juki@ietf.org>; Tue, 18 Jun 2024 15:45:21 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=w3.org; s=s1; h=Subject:Content-Type:Cc:To:Message-ID:Date:From:In-Reply-To: References:MIME-Version:Reply-To; bh=+z46eIjmurEpQpvNWokJIO4fjSDSD7K6xSKGqKJr4Mo=; b=IrM2v3JHCPOvPaSSXmK0B2eDZ4 i2sz65Fx4X/1zs4h40FBo6F1ikyir7anbKOboNmL+LxfaQ8Jec9Db1vJfCkDClAwA2fvhU/8lcVRP IyYURQQLRQE1jRE130tlDL7JfWbA3T41J8Hj5IfFq/Kos/jiHMk9AeiqZbPc4crbmpzCDiCfWvxQb VJy9E/FWGDfxaxrjN7khnNp9hRFUaJTgMm1Ti49LFnG6/7KG74dLjVfzHe6LyPi7oq8FRswuCxxnT 5Gm0NQQ2FHgjx7YrdutIH2GP6VMN4oFDNvtNDnYoR9W4c1UJbIEx22R7NnejfkqUjZT56mQIZ1FQz TLJIGo2A==;
Received: from lists by mab.w3.org with local (Exim 4.96) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1sJhZE-00GpI5-2V for ietf-http-wg-dist@listhub.w3.org; Tue, 18 Jun 2024 22:44:44 +0000
Resent-Date: Tue, 18 Jun 2024 22:44:44 +0000
Resent-Message-Id: <E1sJhZE-00GpI5-2V@mab.w3.org>
Received: from ip-10-0-0-224.ec2.internal ([10.0.0.224] helo=puck.w3.org) by mab.w3.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from <roryhewitt@gmail.com>) id 1sJhZB-00GpHB-0u for ietf-http-wg@listhub.w3.internal; Tue, 18 Jun 2024 22:44:41 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=w3.org; s=s1; h=Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:Reply-To; bh=+z46eIjmurEpQpvNWokJIO4fjSDSD7K6xSKGqKJr4Mo=; t=1718750681; x=1719614681; b=V0gsPB8EKHaodEXv86tdR7NHF9/9QLlUnsgT2Ea58/zSL2wgXyq4HIUBD1JzyixyzJTzN+jch5i s5geoviIY6r1Wnp71XxoUyKKDeTyN1DsSZB7ErcyPDqZaMMAhCRXFNQpf2JMNMGQFMWjCydeC8knN ur2uJLuQkwXYl9INni8dmSn5Loyu8ptAZR++VuXZxDKPGBK/MFei4OVyx2jKc8jKQ+N1kuezDiBpN 6ZkhlwoaAIaSwMW4RjX3VpO8Z8ZU5r7BtOKr9zA200S3jyv5qcwKyPwaFQt/zKuNcu2N22ur223b3 Xjqjl+wnoVkwEBFvvU3rku1HBnFWlm7UA3vg==;
Received-SPF: pass (puck.w3.org: domain of gmail.com designates 2a00:1450:4864:20::42a as permitted sender) client-ip=2a00:1450:4864:20::42a; envelope-from=roryhewitt@gmail.com; helo=mail-wr1-x42a.google.com;
Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]) by puck.w3.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from <roryhewitt@gmail.com>) id 1sJhZA-0098al-28 for ietf-http-wg@w3.org; Tue, 18 Jun 2024 22:44:41 +0000
Received: by mail-wr1-x42a.google.com with SMTP id ffacd0b85a97d-3632a6437d7so178636f8f.0 for <ietf-http-wg@w3.org>; Tue, 18 Jun 2024 15:44:40 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718750676; x=1719355476; darn=w3.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=+z46eIjmurEpQpvNWokJIO4fjSDSD7K6xSKGqKJr4Mo=; b=mJj885v21za5HaE10V9ars6ig125H0TLlLDdkU9ydZDTTn4I0s0Z7OWVKX24RcfsmD hxGiY30M0wpkpI9ZKxzaSjsOQcv66vTUjqIii/0Xksdl6FCmGIwtszoVRjF1K4wlqkXv qp7aMDpqKye9tIulNP6x/zhTylET2FoLM7kXi0LHypTFaS3N2JXZNhGKZ6FuxG/p2/vt nxmIQ24FgioN3psk6dsCXyxJ/EXBACnLqeNLWwcl/9xDJFx3WN26gcFXh5YQPeOZ1kpv e/508e9TrzYBYTL+SyqHPhaoSSdtCrip7MUicIGZY2kGtnim1c/OTmq5MEYB320PzKNr SHLQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718750676; x=1719355476; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=+z46eIjmurEpQpvNWokJIO4fjSDSD7K6xSKGqKJr4Mo=; b=lNvnCq+YZBetGU9STRMbHz3b1GPWQhlO3aP1KtHF0E2yqq1TxXvfNKP9fcv2aTT7MV fJLWB4lLV7qvxaT+Fb6v16W6G32giLPbKg89lO0ciPcwBLce+svk7muGTjXi2HGcFWnR ZJQKDoLR1PgLfBgo9jHQHylbawuXq7B3vgJNm6ITaoMzrh7oNo9n4RxlzFPVWv6qI279 VPP4f82H5mQRAAvP2RNwtpu7noeTF70SmWRvwqmskdyk8rRtWcmrQ+w0P+skMJ41cQbG ZI5dOJXOh4+GbG/Dq+I+1u//nMj6OZC+E/5sXp7UjJF2ICj8GgeKIJKYyVvkeVr858IQ iAbg==
X-Forwarded-Encrypted: i=1; AJvYcCVl0k83PjzRVAW8FuH1hl5+nCWj9sZQDrCzf0EEdRdn10k/B1Rd6UOdc0/YBJnBsTHBS1LxGbJrSdEeDSj5z044khia
X-Gm-Message-State: AOJu0YzSaVtU0l5c1iY6IWELgjoxfMEaqhGUqvuiJ13nlgBTHDzA1k4o mL3aHLmGCFc2gXr6O7+Z3UfscacBV9J61hfTCXgS/oc7KIboTZe1HOKNoNu4wuoCr6XeWq+weZ5 C4GyXqBL+hXFPmlb3vdVR8qgT8VckQ3N5
X-Google-Smtp-Source: AGHT+IHtUWjwW7dSxgdCfwH8YFtzsL9nSKWIfjBpzdfGjDFDmM/60GvoQSf2AJNTSXlMHqokBfft0FOe299DqD5uOms=
X-Received: by 2002:a5d:484a:0:b0:360:9e8b:e849 with SMTP id ffacd0b85a97d-3630191c8b5mr965827f8f.31.1718750675784; Tue, 18 Jun 2024 15:44:35 -0700 (PDT)
MIME-Version: 1.0
References: <CACuR13cnHHoRv_Z-HtJeOyJqZb7AVU-_udQ=R_x9qQ1_JeP=KQ@mail.gmail.com> <CAEmMwDwZ8RB0Zz5GCbPeSFH-1tVgTW-hy4_0Fd1L90hNi3h0RA@mail.gmail.com> <CAEmMwDwxpy7QvJBx01WZpHmH=c2QKE6Q7iBAQisNSqRaxBoz3Q@mail.gmail.com> <CACuR13fENsddR_-3NK+w8w5OvcOwnyt=_eiHsK0E0S2X4rr=ZQ@mail.gmail.com> <CAEmMwDyMZz89pRY9OPimPDR1+-nULW9ZC8DjcYfOWvuWjUdtYA@mail.gmail.com> <CAF8qwaCo1gfWaUmSi+V3_bth_Ng8id6UWvY7BeKKA4h3WuMT9A@mail.gmail.com>
In-Reply-To: <CAF8qwaCo1gfWaUmSi+V3_bth_Ng8id6UWvY7BeKKA4h3WuMT9A@mail.gmail.com>
From: Rory Hewitt <rory.hewitt@gmail.com>
Date: Tue, 18 Jun 2024 15:44:24 -0700
Message-ID: <CAEmMwDxN-SGQemcmTEoYS4YfVV23Q21c+Y_ePk4X7i4oTfn9hQ@mail.gmail.com>
To: David Benjamin <davidben@chromium.org>
Cc: Jeremy Roman <jbroman@chromium.org>, ietf-http-wg@w3.org
Content-Type: multipart/alternative; boundary="0000000000007cd92f061b31d36f"
X-W3C-Hub-DKIM-Status: validation passed: (address=roryhewitt@gmail.com domain=gmail.com), signature is good
X-W3C-Hub-Spam-Status: No, score=-5.1
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, DMARC_PASS=-0.001, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, W3C_AA=-1, W3C_DB=-1, W3C_WL=-1
X-W3C-Scan-Sig: puck.w3.org 1sJhZA-0098al-28 4da1b6f80d48ab604b9c0514de5435e0
X-Original-To: ietf-http-wg@w3.org
Subject: Re: No-Vary-Search
Archived-At: <https://www.w3.org/mid/CAEmMwDxN-SGQemcmTEoYS4YfVV23Q21c+Y_ePk4X7i4oTfn9hQ@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/52029
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/email/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

<bikeshedding>

Well I'm basing my "it's about caching" argument on both the RFC draft
itself and also the *excellent* explainer at
https://github.com/WICG/nav-speculation/blob/main/no-vary-search.md which
is explicitly all about caching :)

I think we (and others?) agree that "search" isn't a good name segment due
to its multiple meanings. Personally, I think using the "no-" prefix isn't
necessarily helpful, since this header can be used to specify what *should
and should not* be part of the cache key. So my preference would be for it
to be "Vary-Cache" or "Vary-Params" or "Cache-Params".

</bikeshedding>

On Tue, Jun 18, 2024 at 3:34 PM David Benjamin <davidben@chromium.org>
wrote:

> <bikeshed>
> I think No-Vary-Cache is a worse header name than No-Vary-Search. It says
> nothing about the URL query/search field and could just as easily describe
> the HTTP request headers or other things that the response doesn't vary on.
> That means it should include *something* that indicates the URL
> query/search field.
>
> As for the Cache part, it's not *really* a statement about the cache
> anyway. It's a statement about whether the *response* to this request
> varies on some property. The cache is just the primary reason for the
> client to care about this information. So, matching the precedent with the
> Vary header, I think "Vary" is enough to capture this aspect of the name
> without adding "Cache".
>
> I agree the combination of the two is awkward. It's unfortunate that
> "search" is a bit overloaded of a term, and everywhere is inconsistent
> about whether it's the "query" or the "search", but removing any reference
> to the field at all is even worse. (Tossing out an idea without opinion,
> No-Vary-(Search|Query|URL)-Params? It's really the individual params being
> targeted and not the overall search/query string.)
> </bikeshed>
>