Client Hint Reliability

David Benjamin <davidben@chromium.org> Mon, 20 July 2020 17:39 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 83AEA3A0D85 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 20 Jul 2020 10:39:35 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.019
X-Spam-Level:
X-Spam-Status: No, score=-3.019 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=0.001, MAILING_LIST_MULTI=-1, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=chromium.org
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 kA7i6g--Kp8V for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 20 Jul 2020 10:39:33 -0700 (PDT)
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 C29163A0D79 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 20 Jul 2020 10:39:33 -0700 (PDT)
Received: from lists by lyra.w3.org with local (Exim 4.92) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1jxZiG-0004Sz-Nq for ietf-http-wg-dist@listhub.w3.org; Mon, 20 Jul 2020 17:36:28 +0000
Resent-Date: Mon, 20 Jul 2020 17:36:28 +0000
Resent-Message-Id: <E1jxZiG-0004Sz-Nq@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 <davidben@google.com>) id 1jxZiF-0004S9-Ci for ietf-http-wg@listhub.w3.org; Mon, 20 Jul 2020 17:36:27 +0000
Received: from mail-pl1-x62b.google.com ([2607:f8b0:4864:20::62b]) by mimas.w3.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from <davidben@google.com>) id 1jxZiD-000356-QK for ietf-http-wg@w3.org; Mon, 20 Jul 2020 17:36:27 +0000
Received: by mail-pl1-x62b.google.com with SMTP id o1so8994956plk.1 for <ietf-http-wg@w3.org>; Mon, 20 Jul 2020 10:36:25 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:from:date:message-id:subject:to; bh=hq7wBK/MYhpWlL47huSkvy7TynielrLshsbFSj59ztM=; b=RLYs1ZBTvYXpgnA5ALgaOxntN5KL03arDrSabmQsyCuca8cyQcPAv0KXhxXdT6dO4X SOyT2MUpifKju2urJg8KrQf2khrPEI7iVbtSGp5kwJkMlA4tNmzcemJ93Ox6qe0tO9b2 lkOkcBzQjtMiOgsQtpmlFM3Gzo5eUrX1Gz2qI=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=hq7wBK/MYhpWlL47huSkvy7TynielrLshsbFSj59ztM=; b=QUQ8XrDH/c7SI6dryG710HAVWzFDi+7P1Kb2A2xIJFJQH/CBmP3c2RX5Sar8Ajq4kE MuqvN3j6U6yTj8kGYIK2Gxg9fIHg1mvfNFLjmrpIZOGoRwbAsFHNlIWQSDAJDcyF+qhn RDlWc646rilGyyLptcN3leHOQQGFKY/9OSHly51EgagoGuV/zM8SU/3BHNbI6ObELuZw hQD+1p0vqqdadIdOWLKaMtBAWfu/7w7n5eCsn3H4x3cKl7UkvvchWEMSdEZpJ+yiiNDY yyz4r7P9RBrg/A/jGpjZBfeJ1mYP3PaoaBew+ZOX4LuZRf1hrPwV6fN1F80hVwBNYEq0 JNdw==
X-Gm-Message-State: AOAM530w4kInN4HBy6cN1Wvy/EWaHQGlzxGODg/ZsAQLEdkZt8Sm6Syr qm5j2Ce58ymc0LUAAWeykejRX8gj2skEKW1DT3Jd/ws=
X-Google-Smtp-Source: ABdhPJzPnV5MV1RQV39vpRN2tDZpWs20TbMLWnhGJDaVQCPqjhEVwrItaGR6C5MPDfdkn5QZRJ1JjL4i0ZhjHqqV9Mc=
X-Received: by 2002:a17:90a:bb84:: with SMTP id v4mr540197pjr.162.1595266573922; Mon, 20 Jul 2020 10:36:13 -0700 (PDT)
MIME-Version: 1.0
From: David Benjamin <davidben@chromium.org>
Date: Mon, 20 Jul 2020 13:35:57 -0400
Message-ID: <CAF8qwaD0CZkLJR87BeGepjQ5Asee6Aiu9qnoXq3kK28RY2Z48w@mail.gmail.com>
To: HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary="000000000000765d4b05aae2f170"
Received-SPF: pass client-ip=2607:f8b0:4864:20::62b; envelope-from=davidben@google.com; helo=mail-pl1-x62b.google.com
X-W3C-Hub-Spam-Status: No, score=-11.5
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1jxZiD-000356-QK 7c91f77d34d80116b85888b3555b26ed
X-Original-To: ietf-http-wg@w3.org
Subject: Client Hint Reliability
Archived-At: <https://www.w3.org/mid/CAF8qwaD0CZkLJR87BeGepjQ5Asee6Aiu9qnoXq3kK28RY2Z48w@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/37892
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>

Hi all,

One of the bits of developer feedback we’ve gotten on Client Hints is the
first view problem, or more generally the reliability problem:
https://github.com/WICG/client-hints-infrastructure/issues/16

An HTTP request can only take into account previous HTTP responses’
Accept-CH headers, which means the first resource request to a site, either
overall or after a config change, may be missing Client Hints. Fixing this
requires detecting the reason for the missing header, which is tricky for
the server (maybe the client just never sends it), and costs a round-trip.
This makes Client Hints unattractive for top-level resources, or use cases
where the header meaningfully changes the page.

We’ve been looking at a pair of mechanisms to address this. The first is an
HTTP response header for the server to trigger a client retry if needed.
The second builds on Victor Vasiliev’s ALPS drafts to get the information
to the client before its first request in most cases, avoiding the
performance hit.

I’ve written up an initial draft describing the two:
https://tools.ietf.org/html/draft-davidben-http-client-hint-reliability-00

There’s also an overview in W3C-style explainer
<https://w3ctag.github.io/explainers> form in the Client Hints
infrastructure WICG repo:
https://github.com/WICG/client-hints-infrastructure/blob/master/reliability.md

I would be interested in hearing the WG’s thoughts on this.

David