draft-ietf-httpbis-client-hints-04; 2.2.2. The Accept-CH-Lifetime header field

Kari Hurtta <hurtta-ietf@elmme-mailer.org> Wed, 19 April 2017 16:45 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 B5900129B4D for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 19 Apr 2017 09:45:57 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.901
X-Spam-Level:
X-Spam-Status: No, score=-6.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, 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, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
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 BAW_V7eswetb for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 19 Apr 2017 09:45:54 -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 E908C129B59 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 19 Apr 2017 09:45:27 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1d0sfp-0002Sh-NL for ietf-http-wg-dist@listhub.w3.org; Wed, 19 Apr 2017 16:41:45 +0000
Resent-Date: Wed, 19 Apr 2017 16:41:45 +0000
Resent-Message-Id: <E1d0sfp-0002Sh-NL@frink.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <khurtta@welho.com>) id 1d0sfl-0002QS-Eo for ietf-http-wg@listhub.w3.org; Wed, 19 Apr 2017 16:41:41 +0000
Received: from welho-filter4.welho.com ([83.102.41.26]) by mimas.w3.org with esmtp (Exim 4.84_2) (envelope-from <khurtta@welho.com>) id 1d0sff-00048c-00 for ietf-http-wg@w3.org; Wed, 19 Apr 2017 16:41:36 +0000
Received: from localhost (localhost [127.0.0.1]) by welho-filter4.welho.com (Postfix) with ESMTP id EFBCF24249; Wed, 19 Apr 2017 19:41:06 +0300 (EEST)
X-Virus-Scanned: Debian amavisd-new at pp.htv.fi
Received: from welho-smtp1.welho.com ([IPv6:::ffff:83.102.41.84]) by localhost (welho-filter4.welho.com [::ffff:83.102.41.26]) (amavisd-new, port 10024) with ESMTP id 5BEDd-3Ss6Dw; Wed, 19 Apr 2017 19:41:03 +0300 (EEST)
Received: from hurtta09lk.keh.iki.fi (89-27-35-245.bb.dnainternet.fi [89.27.35.245]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by welho-smtp1.welho.com (Postfix) with ESMTPS id 7415527F; Wed, 19 Apr 2017 19:41:03 +0300 (EEST)
In-Reply-To: <D9E568D2-D84E-464F-A619-C2F92DD49B08@mnot.net>
References: <D9E568D2-D84E-464F-A619-C2F92DD49B08@mnot.net>
To: HTTP working group mailing list <ietf-http-wg@w3.org>
Date: Wed, 19 Apr 2017 19:41:03 +0300
Sender: hurtta@hurtta09lk.keh.iki.fi
From: Kari Hurtta <hurtta-ietf@elmme-mailer.org>
CC: Kari Hurtta <hurtta-ietf@elmme-mailer.org>
X-Mailer: ELM [version ME+ 2.5 PLalpha44+]
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="US-ASCII"
Message-Id: <20170419164106.EFBCF24249@welho-filter4.welho.com>
Received-SPF: none client-ip=83.102.41.26; envelope-from=khurtta@welho.com; helo=welho-filter4.welho.com
X-W3C-Hub-Spam-Status: No, score=-3.0
X-W3C-Hub-Spam-Report: AWL=-1.021, BAYES_20=-0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1d0sff-00048c-00 a5f8c797e51f369733ad3a8f6bc658b1
X-Original-To: ietf-http-wg@w3.org
Subject: draft-ietf-httpbis-client-hints-04; 2.2.2. The Accept-CH-Lifetime header field
Archived-At: <http://www.w3.org/mid/20170419164106.EFBCF24249@welho-filter4.welho.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33829
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>

2.2.2.  The Accept-CH-Lifetime header field
https://tools.ietf.org/html/draft-ietf-httpbis-client-hints-04#section-2.2.2

|   Servers can ask the client to remember an origin-wide Accept-CH
|   preference for a specified period of time to enable delivery of
|   Client Hints on all subsequent requests to the origin, and on
|   subresource requests initiated as a result of processing a response
|   from the origin.
|
|     Accept-CH-Lifetime = #delta-seconds
|
|   The field-value indicates that the Accept-CH preference should be
|   considered stale after its age is greater than the specified number
|   of seconds.
|
|     Accept-CH: DPR, Viewport-Width
|     Accept-CH-Lifetime: 86400


It is not very clear why two header fields is needed to pass that information.

2.2.1.  Advertising Support via Accept-CH header field
https://tools.ietf.org/html/draft-ietf-httpbis-client-hints-04#section-2.2.1

|   Servers can advertise support for Client Hints using the Accept-CH
|   header field or an equivalent HTML meta element with http-equiv
|   attribute ([W3C.REC-html5-20141028]).

Is it assumed that "Accept-CH" is given in http-equiv
attribute, but "Accept-CH-Lifetime" on http response ?

Or is that needed so that "Accept-CH" can be given
on several times?


What happens if there is several "Accept-CH-Lifetime"
on response?

/ Kari Hurtta