103 (Early Hints) vs. response headers

Vasiliy Faronov <vfaronov@gmail.com> Thu, 23 February 2017 15:35 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 350D51299C1 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 23 Feb 2017 07:35:46 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.501
X-Spam-Level:
X-Spam-Status: No, score=-6.501 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.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-0.001, SPF_HELO_PASS=-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=gmail.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 FdSjQO7kKbvz for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 23 Feb 2017 07:35:44 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id CA43F12996C for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 23 Feb 2017 07:35:44 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cgvOd-0000v2-92 for ietf-http-wg-dist@listhub.w3.org; Thu, 23 Feb 2017 15:33:31 +0000
Resent-Date: Thu, 23 Feb 2017 15:33:31 +0000
Resent-Message-Id: <E1cgvOd-0000v2-92@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <vfaronov@gmail.com>) id 1cgvOY-0000t0-Uy for ietf-http-wg@listhub.w3.org; Thu, 23 Feb 2017 15:33:26 +0000
Received: from mail-qt0-f172.google.com ([209.85.216.172]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <vfaronov@gmail.com>) id 1cgvOS-000204-DF for ietf-http-wg@w3.org; Thu, 23 Feb 2017 15:33:21 +0000
Received: by mail-qt0-f172.google.com with SMTP id x35so31223238qtc.2 for <ietf-http-wg@w3.org>; Thu, 23 Feb 2017 07:32:59 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=Rvnf7sSMMYf+wY9a2wQSnNam8ajQDXIn/3E0vjsvJDE=; b=WCAjLo4/hRyuIp0ckbDO4G1V7CQJECxNFuhL6SO6Kr24V4TbA52ZHerEzwgYm51Ob7 cexe1JjrymAd2m5QiGzQs9WtCLsbN9jxKo04uP9wJqhbzYnKAV1tI9RY/eMz8O3pPdbG h4zlab9roDajwNX8t0q7sXuTStZRgE5p6JHAHuMGX/gDrWRJyA55Oj/6H5sVi68ox0AF oN+LsI5oAaG1UWYOmqMh6DKhZU2CT7u7HMA14FeeKuNEu7W1S2IHZ3ysfvOxYTPXRmmx hUK9nDAhuJkMkKVXZRU4p7VxMGFPJR4ladkAfR4itOVe4GHC/8dn31uFnYtkZ31K5Grm EzVg==
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=Rvnf7sSMMYf+wY9a2wQSnNam8ajQDXIn/3E0vjsvJDE=; b=i9Yr4D5CiUszmJYoyMr8lYsZQmTJkHXJv+7vQ/EVnmh0jcw4+dGf58TwmhJcACGMr1 EBaurwoZhqeylvs3Usjvhaqo6YrCWR8TL8zDc0qWkgPJpEwQIsUiBOfxzf61+PMvkf7t WTRLnCJ2TKBf2mT3eHAKC1RCKSKLX2YlSd1q2hxpjZHwIEj+QyMn8xAVfVoAcrwK4sIe dxEucnsf3oxzdZbOkXdrJ6d3wdrJxsGeRgydWglmhfmIDAyvkOSnjtRI7LGLSxIokyn7 2Bv857ZLx1Tb/pz1wvB/vWUZQUneQ7eu65bu39WaOuVualDyfKPe18v8ijThOuv6CJDl RukA==
X-Gm-Message-State: AMke39mKnfOEulE+jSZngNF7JJnkPulC+bhbEnmFW80WQRXpmPLqBk30u948vlkdck6OVXB3nfo/tMl8shqx9Q==
X-Received: by 10.200.40.86 with SMTP id 22mr4587369qtr.245.1487863644006; Thu, 23 Feb 2017 07:27:24 -0800 (PST)
MIME-Version: 1.0
Received: by 10.12.132.130 with HTTP; Thu, 23 Feb 2017 07:27:23 -0800 (PST)
From: Vasiliy Faronov <vfaronov@gmail.com>
Date: Thu, 23 Feb 2017 18:27:23 +0300
Message-ID: <CALHHdhwQBfBN0Xz-4kxRJrJekiCLnro1i-MVw954wTRyOWAtvw@mail.gmail.com>
To: Kazuho Oku <kazuhooku@gmail.com>, ietf-http-wg@w3.org
Content-Type: text/plain; charset="UTF-8"
Received-SPF: pass client-ip=209.85.216.172; envelope-from=vfaronov@gmail.com; helo=mail-qt0-f172.google.com
X-W3C-Hub-Spam-Status: No, score=-4.3
X-W3C-Hub-Spam-Report: AWL=0.900, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, W3C_AA=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1cgvOS-000204-DF 6a3e4457577fc23b4f57c02c21f09f8a
X-Original-To: ietf-http-wg@w3.org
Subject: 103 (Early Hints) vs. response headers
Archived-At: <http://www.w3.org/mid/CALHHdhwQBfBN0Xz-4kxRJrJekiCLnro1i-MVw954wTRyOWAtvw@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33607
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: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

Hi Kazuho, all,

I have a question about the 103 (Early Hints) draft [1]. It says:

> A client MAY speculatively evaluate the headers included in the
> informational response while waiting for the final response.  For
> example, a client may recognize the link header of type preload and
> start fetching the resource.  However, the evaluation MUST NOT affect
> how the final response is processed; the client must behave as if it
> had not seen the informational response.

It's clear how this should work for rel=preload.

It's also clear how this should work for representation metadata [2],
although I think it's worth calling out explicitly in the spec that
such metadata on a 103 response applies (speculatively) to whichever
representation is associated with the final response.

But how should this work in general for headers that apply to
individual responses?

I don't have a convincing real-world example, but let's take the
Warning header [3], which can be applied to any message. According to
the spec, clients SHOULD display or log warnings, and I think there
are clients that do. Suppose such a client receives:

    HTTP/1.1 103 Early Hints
    Link: </another-resource>; rel=preload
    Warning: 299 - "something is not quite right"

    HTTP/1.1 200 OK
    Date: Thu, 23 Feb 2017 16:49:43 GMT
    Content-Type: text/html
    Link: </another-resource>; rel=preload
    Connection: close

    ...text goes here...

Should it log/display the warning (as applied to the 103 response), or
discard it (as missing from the 200 response)?

Should the spec for 103 be more explicit about this?

Thank you.


[1] https://tools.ietf.org/html/draft-ietf-httpbis-early-hints-00
[2] https://tools.ietf.org/html/rfc7231#section-3.1
[3] https://tools.ietf.org/html/rfc7234#section-5.5


-- 
Vasiliy