Re: Working Group Last Call: draft-ietf-httpbis-early-hints-02

Kazuho Oku <kazuhooku@gmail.com> Thu, 25 May 2017 22: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 2395E127B5A for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 25 May 2017 15:05:37 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.002
X-Spam-Level:
X-Spam-Status: No, score=-7.002 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, RP_MATCHES_RCVD=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-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 L3NXkpAIBuDN for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 25 May 2017 15:05:35 -0700 (PDT)
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 1AB29129B2B for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 25 May 2017 15:05:34 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1dE0p7-0000EE-Vl for ietf-http-wg-dist@listhub.w3.org; Thu, 25 May 2017 22:01:37 +0000
Resent-Date: Thu, 25 May 2017 22:01:37 +0000
Resent-Message-Id: <E1dE0p7-0000EE-Vl@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 <kazuhooku@gmail.com>) id 1dE0p1-0000DM-T6 for ietf-http-wg@listhub.w3.org; Thu, 25 May 2017 22:01:31 +0000
Received: from mail-pf0-f174.google.com ([209.85.192.174]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <kazuhooku@gmail.com>) id 1dE0ov-000722-1i for ietf-http-wg@w3.org; Thu, 25 May 2017 22:01:26 +0000
Received: by mail-pf0-f174.google.com with SMTP id m17so178893391pfg.3 for <ietf-http-wg@w3.org>; Thu, 25 May 2017 15:01:04 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=b9Cudvmmx6mc7rfw1jlTSO3RvjYB76BloqVdjN06ODQ=; b=aogec7Kk4zFn63Pkla132D6ZzTi5rvH7hIgLUHg/WlLi6ADimVmdVxVULJD+YxVErq FwZloGJOhz3PrjTCrrEhHSFlrHKxm3P5ofY37EPpE5qPVyQ0w9oBLwLMMSDc5AHEUWqd NccSYi4IAV9AwkYUDRhaN6BKqjzUugnxZmba123WQCFaRo5VcIp6MaWaFw9uuKN+b+y8 2fCmjqZEh/iXEin+LNxSjgqTGqZeeOfYTXkF1lP1qGvGcSYfWc2PkgNUY4acyHO4e5pt bSPnFXytBuLbS60iNJXqrfG3NoKfDivwiEBS+W9ja4xccXN2rcHMWSuQ87hHtiIaRs5J phEg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=b9Cudvmmx6mc7rfw1jlTSO3RvjYB76BloqVdjN06ODQ=; b=OHPe6NpLO2SIzOPUkF2KDGs5zJPpB8u6GrzBK4dLGDVoz3j0dt4d9YoRZKolKbka8I HITfGBMv0H+6BXnGonco3GeoIcQ8wqBev0anxrW+NgFSmCuUQ3/twu0yq34+ND+jpJis vRho3aVxkp/Q0UB7h2kRYv45QSGjxZL4v9Q4r1cLKubOp5HcFmCQq3OahtASj7E+vABS ALqkFRmiymA1scLbrCWGqI5XoLyfEIdrKX4hdsEP4iSSTLlAIFpVIHvZpdP68e7cYvNr I+tUcBDjqCF1rDiqGQdHIRA5ojqBdhUFQhNFIeBSqH6r/V2xuvk2Typ0AniFtrqWUQnY vw4A==
X-Gm-Message-State: AODbwcDHkCevrtub060hsh/4S4IYZZ+nNBRgEMooM0u9RGDta50K4Qd3 hMiZ02navUQ0OlRlO7+qVxHo0qPJ49Md
X-Received: by 10.99.45.6 with SMTP id t6mr48584207pgt.209.1495749658224; Thu, 25 May 2017 15:00:58 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.100.128.134 with HTTP; Thu, 25 May 2017 15:00:57 -0700 (PDT)
In-Reply-To: <fcf3860a-ed1a-7b04-5776-b5ea3c62a3c0@gmx.de>
References: <42532309-F4FA-4007-8639-04B90743DFFE@mnot.net> <fcf3860a-ed1a-7b04-5776-b5ea3c62a3c0@gmx.de>
From: Kazuho Oku <kazuhooku@gmail.com>
Date: Fri, 26 May 2017 07:00:57 +0900
Message-ID: <CANatvzx=BaRVRuwuuD1ziL8dpv8MXYQERgx8jkJTxJAvia0m2w@mail.gmail.com>
To: Julian Reschke <julian.reschke@gmx.de>
Cc: Mark Nottingham <mnot@mnot.net>, "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>, Patrick McManus <mcmanus@ducksong.com>
Content-Type: text/plain; charset="UTF-8"
Received-SPF: pass client-ip=209.85.192.174; envelope-from=kazuhooku@gmail.com; helo=mail-pf0-f174.google.com
X-W3C-Hub-Spam-Status: No, score=-6.6
X-W3C-Hub-Spam-Report: AWL=0.232, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-2.8, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1dE0ov-000722-1i d763409e25e0f9847cb77bcc941743a1
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Working Group Last Call: draft-ietf-httpbis-early-hints-02
Archived-At: <http://www.w3.org/mid/CANatvzx=BaRVRuwuuD1ziL8dpv8MXYQERgx8jkJTxJAvia0m2w@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33952
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 Julian,

Thank you very much for the suggestions. My comments in-line.

2017-05-19 23:06 GMT+09:00 Julian Reschke <julian.reschke@gmx.de>:
> Here's my feedback (and yes, as stated elsewhere, there should be at least
> one example in the spec):
>
>
> 1.  Introduction
>
>    The "preload" ([Preload]) link relation can be used to convey such
>    links in the Link header field of an HTTP response.  However, it is
>    not always possible for an origin server to generate a response
>    header block immediately after receiving a request.  For example, the
>
> Maybe s/generate a response header block/generate a final response/?

How about https://github.com/httpwg/http-extensions/pull/353?

Including the word "final" makes sense to me. OTOH I think it might be
beneficial to retain the term "header block", to avoid readers
wondering why the solution to not being able to generate a final
response cannot be to stream the final response as you generate.

>    The dilemma here is that even though it is preferable for an origin
>    server to send some headers as soon as it receives a request, it
>
> s/headers/header fields/ (throughout)
>
>    HTTP/2 ([RFC7540]) server push can be used as a solution to this
>    issue, but has its own limitations.  The responses that can be pushed
>    using HTTP/2 are limited to those belonging to the same origin.
>    Also, it is impossible to send only the links using server push.
>
> That's not clear to me. We could HTTP/2-push a HEAD response with link
> header fields, no? Or a GET response which has links in the payload...

Does changing the last sentence of the quote to "Also, it does not
define a way to push the links only." sound reasonable to you?

The paragraph lists what cannot be done under the current state of
HTTP/2, namely: pushing a resource belonging to a different origin,
push links only, avoid resending an already cached response.

All the other suggestions seemed to me that nobody would object, hence
went directly into master in
https://github.com/httpwg/http-extensions/commit/339ac0fff9524f04e80dfc48db4f3ba3eb8963f6.

Thank you very much for your help.

>
>    This memo defines a status code for sending an informational response
>    ([RFC7231], section 6.2) that contains headers that are likely to be
>
> s/section/Section/ (throughout)
>
> 2.  103 Early Hints
>
>    The 103 (Early Hints) informational status code indicates the client
>    that the server is likely to send a final response with the headers
>    included in the informational response.
>
> maybe "indicates to the client"?
>
>    A client MAY speculatively evaluate the headers included in a 103
>    (Early Hints) response while waiting for the final response.  For
>    example, a client might recognize a Link header field value
>    containing the relation type "preload" and start fetching the target
>    resource.
>
> The "MAY" is a bit weird here, because that's the whole point of the new
> status code. I'd just say "can".
>
>
> 3.  Security Considerations
>
>    Some clients may have issues handling 103 (Early Hints), since
>
> s/may/might/ (avoid lowercase BCP14 keywords or invoke
> https://tools.ietf.org/html/rfc8174)
>
>    informational responses are rarely used in reply to requests not
>    including an Expect header ([RFC7231], section 5.1.1).
>
> 7.2.  Informative References
>
>    [Preload]  Grigorik, I., "Preload", September 2016,
>               <https://w3c.github.io/preload/>.
>
> The reference is dated, but the thing referred to is not. Either cite the
> stable version or drop the date.



-- 
Kazuho Oku