Re: 103 (Early Hints) vs. response headers

Vasiliy Faronov <vfaronov@gmail.com> Fri, 24 February 2017 02:27 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 0EC72129492 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 23 Feb 2017 18:27:35 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.502
X-Spam-Level:
X-Spam-Status: No, score=-6.502 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] 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 oVQkbf7d4W69 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 23 Feb 2017 18:27:33 -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 CF8D712948B for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 23 Feb 2017 18:27:33 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1ch5Yo-00065L-Pd for ietf-http-wg-dist@listhub.w3.org; Fri, 24 Feb 2017 02:24:42 +0000
Resent-Date: Fri, 24 Feb 2017 02:24:42 +0000
Resent-Message-Id: <E1ch5Yo-00065L-Pd@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 1ch5Yi-00064a-S6 for ietf-http-wg@listhub.w3.org; Fri, 24 Feb 2017 02:24:36 +0000
Received: from mail-qk0-f181.google.com ([209.85.220.181]) 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 1ch5Yc-0006wh-LK for ietf-http-wg@w3.org; Fri, 24 Feb 2017 02:24:31 +0000
Received: by mail-qk0-f181.google.com with SMTP id x71so8480698qkb.3 for <ietf-http-wg@w3.org>; Thu, 23 Feb 2017 18:24:09 -0800 (PST)
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; bh=A7q+lvbpTzauxVjuZnWs7fnMjGzIB0n+24r2+LxQkS8=; b=ovvW+59Cb7PFKQKEJOL7KmQEive0Tvoz8kmGr9fkjqj5IRrWD1KUvIZ54VaL2qV0IX LrQbfp7DJNOGnXS81a2MHs7pjQGRqEul9mt2liYLOxXchdsJ77tSsDqRQDwtZ1qXEN21 YUyUXgvitpghIB3UL6zo1SUEv3DzNDVQe0JWqd/Ir4GOlUP7a7+O25dkQHp/g7nc487M YOdYrMKpgiuU3DhqN3oF9NfDuVnJMOYxxtU3+13WipOSzDl+usJStUo26xtikBgnXQz/ nsXFcOqnSuhs9pTYoOsr5f//LZHM2zQjrAcjhYT6lxEn3XQFu3miz2nAPqHFN9XXyw7U wPbA==
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; bh=A7q+lvbpTzauxVjuZnWs7fnMjGzIB0n+24r2+LxQkS8=; b=AxvzD5bAUz52n6VOS9Sz11F9zKRVqKjP5yk4gIh3uh3svXSKLF5Egs9GZJpQgErcYw l5IGVzmq8p2Tu33HxNhX/AkyAHzcJwShC0wKv286Ulh722YHM8W0V1raLIl7sunjgAtu hwG+eLoE1ftm1jXTKG0cEol6PCLrei9BNOP46HoLJdlPSqfzSwXLLCkBm5clrTP6rkAw jzMcr51BtPOqaKy0z1aKBFQvCACd3hjYBXV+v6O3TcNWL+NY1JTzOYK6Uw4x3z51v1Mn xZlySogyUYSnbUQIrK8yFby9uy2uokneq7GCAMoRnOMYm3I0sYNGm/xri8sFI1GzDDb9 KG7w==
X-Gm-Message-State: AMke39kSMkH9TSYnI/oKWmZx5VfmSBP6WBqT/PSYAd+SLYTjCArM3xL+8AMayf7E4A3HWLLO5oqN3+lG9gCgBg==
X-Received: by 10.55.180.5 with SMTP id d5mr299671qkf.266.1487902569525; Thu, 23 Feb 2017 18:16:09 -0800 (PST)
MIME-Version: 1.0
Received: by 10.12.132.130 with HTTP; Thu, 23 Feb 2017 18:16:09 -0800 (PST)
In-Reply-To: <CANatvzzDOPwmQhouX4LqVM8ALecwQ1So0B_uZSOKO2=OojwLaA@mail.gmail.com>
References: <CALHHdhwQBfBN0Xz-4kxRJrJekiCLnro1i-MVw954wTRyOWAtvw@mail.gmail.com> <CANatvzzDOPwmQhouX4LqVM8ALecwQ1So0B_uZSOKO2=OojwLaA@mail.gmail.com>
From: Vasiliy Faronov <vfaronov@gmail.com>
Date: Fri, 24 Feb 2017 05:16:09 +0300
Message-ID: <CALHHdhxy2sj2TdmyKk-1UcRjK7WCooZ+Sz91_LjnudxscPH6xQ@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.220.181; envelope-from=vfaronov@gmail.com; helo=mail-qk0-f181.google.com
X-W3C-Hub-Spam-Status: No, score=-4.3
X-W3C-Hub-Spam-Report: AWL=0.250, 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_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, W3C_AA=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1ch5Yc-0006wh-LK a084e225f9cfc180dce718eb6451a625
X-Original-To: ietf-http-wg@w3.org
Subject: Re: 103 (Early Hints) vs. response headers
Archived-At: <http://www.w3.org/mid/CALHHdhxy2sj2TdmyKk-1UcRjK7WCooZ+Sz91_LjnudxscPH6xQ@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33610
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>

Kazuho, thank you for clarifying.


On Fri, Feb 24, 2017 at 4:34 AM, Kazuho Oku <kazuhooku@gmail.com> wrote:
> I think that the client should discard it, because (contrary to the
> expectation) the server did not include the Warning header in the
> final response, and because the draft states that:
>
>    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.

This makes 103 a special case in HTTP processing, sort of like HEAD or
204. A client that understands 1xx, but doesn't know 103 specifically,
would handle such a header differently.

If, instead, you defined headers on a 103 response as applying *both*
to the 103 response *and* to the final response (speculatively), then
there would be no such special-casing, while rel=preload would work
the same. (Content-* might still need special-casing for 103, but they
are already defined in terms of "associated representation" for the
special case of HEAD.)

Of course, this won't be a problem in practice if 103 is only used for
rel=preload. This isn't causing me any trouble, just something I
wanted to point out for your consideration.


-- 
Vasiliy