Re: New Version Notification for draft-nottingham-cache-header-00.txt

Kazuho Oku <kazuhooku@gmail.com> Wed, 14 November 2018 12:51 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 2A093130E30 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2018 04:51:53 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.752
X-Spam-Level:
X-Spam-Status: No, score=-2.752 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, 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 JCBQ4aq5LSfN for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 14 Nov 2018 04:51:50 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [IPv6:2603:400a:ffff:804:801e:34:0:38]) (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 8780F130E07 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 14 Nov 2018 04:51:50 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.89) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1gMubj-0003cS-Df for ietf-http-wg-dist@listhub.w3.org; Wed, 14 Nov 2018 12:49:23 +0000
Resent-Date: Wed, 14 Nov 2018 12:49:23 +0000
Resent-Message-Id: <E1gMubj-0003cS-Df@frink.w3.org>
Received: from mimas.w3.org ([2603:400a:ffff:804:801e:34:0:4f]) by frink.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from <kazuhooku@gmail.com>) id 1gMubg-0003bU-RX for ietf-http-wg@listhub.w3.org; Wed, 14 Nov 2018 12:49:20 +0000
Received: from mail-lj1-x230.google.com ([2a00:1450:4864:20::230]) by mimas.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from <kazuhooku@gmail.com>) id 1gMubd-0006HL-CV for ietf-http-wg@w3.org; Wed, 14 Nov 2018 12:49:20 +0000
Received: by mail-lj1-x230.google.com with SMTP id x85-v6so13995942ljb.2 for <ietf-http-wg@w3.org>; Wed, 14 Nov 2018 04:48:57 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=7vysQQGwXbqEgdNpnfP0q0M4pQtZrF8qKlYvjHt9YXw=; b=sIfbCq0U4/nH8wwy8KBy1IMqrG8/dsMNnefVFi6c+XpvXnTPb5raMu4jt59wCvCNO6 oqDeCmPT3IsGCFz3zIdd84tEV2xfIt+kKMoj0qluNAW2nGY+S9Eoc8bRhGoQg9WnfjMW FtaRXdb5GGDZyMMB1gQFxPiWBd0aL3/wvT9KkMo9Iahl/1wr2MhYkfDvUNxDKWiFAFs/ CQB392Dii5LtRIr2DJLBQxuHH+NUTV4luVPANDRmZy2+KlxJIPNazCvNClYDWkoVQU6a T3+J5jlzW709QaV+u/l2v8Y453OiQiu2r6Jr5ptyXfbIA8JuzSUX3d2URVX86vJw1uDJ zf1g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=7vysQQGwXbqEgdNpnfP0q0M4pQtZrF8qKlYvjHt9YXw=; b=iyaQlCvZwXsmcrWoVZgPldjOhLW07JzfaYqTiizJNIOoPIQRJY/xC2bq5JzU7GmaAh SD2gSN47wJRyNfsZAmkqd+334Uii5gYtBxx5EnZU4mDg0b+0qEOP+hS4bPtnMW/EVYxe OfKxnSvv43M+zKoHxRZgBk1bOmordxE8OfEV/fcVTJBugkqADdyjKEwrTsZ/qrK/6RST AKN87hR1To1ZHccgYNpnKYpoHh/J8HAKaKYgcqqBDo1jwD+Blia3iEtW+nBaavVZJUc9 5BBmxUsT5unCSU0+1ls6k8jG289P5Cij628eYF7NMsb1eOQsHEjEPB9hNt781QGxnyfq YyZQ==
X-Gm-Message-State: AGRZ1gIXNOygtrs4m7+vHi0THBFMTR/0yrL3T1KGOW3DyQGIPtxor8pP mORR7yXUdnjJtDznRURQ/iEK8wO4QbjNKewwkjqJZg==
X-Google-Smtp-Source: AJdET5dqQo7YyYi7g/B2+utbLW4ezpdIxplh0spyEez/ZXrkph3NJ2xImCJcGXt9UfWwL+9DlpE8CKx2g1Bl/Z6ky6o=
X-Received: by 2002:a2e:81a:: with SMTP id 26-v6mr1155410lji.14.1542199735756; Wed, 14 Nov 2018 04:48:55 -0800 (PST)
MIME-Version: 1.0
References: <153630251281.11674.4222139546682549239.idtracker@ietfa.amsl.com> <AEDC275A-8CE2-48F4-B08A-8791FB0443B1@mnot.net> <CANatvzw5mMMHpXXLO3WHupn1sUeCCLuy-yy-eRj+28=b_id7zQ@mail.gmail.com> <BA67F889-6D03-473D-BED7-9339C6F83406@mnot.net>
In-Reply-To: <BA67F889-6D03-473D-BED7-9339C6F83406@mnot.net>
From: Kazuho Oku <kazuhooku@gmail.com>
Date: Wed, 14 Nov 2018 21:48:46 +0900
Message-ID: <CANatvzyigdVp__NoJa1Ds_acnjYrEzKateXAutLEtVY2DJ=QUg@mail.gmail.com>
To: Mark Nottingham <mnot@mnot.net>
Cc: HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-W3C-Hub-Spam-Status: No, score=-4.1
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1gMubd-0006HL-CV 618ec435dfcbe7f2fc4cf1c3494d0ef9
X-Original-To: ietf-http-wg@w3.org
Subject: Re: New Version Notification for draft-nottingham-cache-header-00.txt
Archived-At: <https://www.w3.org/mid/CANatvzyigdVp__NoJa1Ds_acnjYrEzKateXAutLEtVY2DJ=QUg@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/36070
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 Mark,

Thank you for the clarifications.

I agree that we need a structured way to emit what's happening in the
caches, and that the proposed Cache header is in the approach we
should adopt.

I still feel it to be unfortunate for the fact that the features
overlap between the two header fields, but hopefully browsers would
add JavaScript API to the Cache header and then things would become
optimal.

2018年11月13日(火) 13:57 Mark Nottingham <mnot@mnot.net>:
>
> Hi Kazuho!
>
> > On 13 Nov 2018, at 2:23 pm, Kazuho Oku <kazuhooku@gmail.com> wrote:
> >
> > Hi Mark,
> >
> > Thank you for the draft.
> >
> > I like the Cache header it because it standardizes what we have been
> > doing, and it has clear structure that can be used by the client to
> > collect stats.
> >
> > OTOH, I wonder how we should use it in conjunction with Server-Timing header.
> >
> > In my view, both the Cache header and the Server-Timing header allows
> > caches and intermediaries to set arbitrary information related to
> > processing.
> >
> > For example, I think the example described in the I-D (quoted below
> > using separate Cache header for each element) can be represented also
> > by using the Server-Timing headers as show below.
> >
> >    Cache: HIT_FRESH; node="reverse-proxy.example.com:80";
> >        key="https://example.com/foo|Accept-Encoding:gzip"
> >    Cache: HIT_STALE; node="FooCDN parent"; fresh=-45; age=200; latency=3,
> >    Cache: MISS; node="FooCDN edge"; fresh=-45; age=200; latency=98
> >
> >    Server-Timing: hit-fresh; node="reverse-proxy.example.com:80";
> >        key="https://example.com/foo|Accept-Encoding:gzip"
> >    Server-Timing: hit-stale; node="FooCDN parent"; fresh=-45; age=200; dur=3
> >    Server-Timing: miss; node="FooCDN edge"; fresh=-45; age=200; dur=98
> >
> > I do not think that having both Cache and Server-Timing is a bad idea.
> > However I would like to see a clarification on how they should be
> > used, especially because their features are IMO overlapping
> > (especially the `latency` and `dur` attributes).
>
> Server-Timing is designed for *application specific* metrics; it's automagically slurped up by browsers for inclusion in their developer tools, etc. Effectively, it doesn't have any semantics beyond "whatever metrics you want to put in here will show up over there."
>
> Cache is designed for generic HTTP caching semantics; its value is in that its values mean the same no matter what application you use them with. By default browser dev tools don't display it, but there's no reason they couldn't if they wanted to -- and because it has defined semantics, if they did, they'd be able to integrate it into what they show the developer more deeply / accurately.
>
> If we used Server-Timing for this use case, we'd be effectively squatting on a bunch of metric names for applications, and hoping we wouldn't have a clash. I think encouraging CDNs, reverse proxies and forward proxy caches to use Server-Timing is Probably Not Great.
>
> Also -considering that 95% of the effort here is going to be defining the semantics, I'm not too worried about the extra effort of defining a new header (especially since we're using Structured Headers :)
>
> Cheers,
>
>
> >
> > 2018年9月7日(金) 15:48 Mark Nottingham <mnot@mnot.net>:
> >>
> >> FYI; IMO it's past time to standardise x-cache and have a real spec for it.
> >>
> >> This is a straw-man, based on a bit of research on existing implementations.
> >>
> >> Pretty version at:
> >>  https://mnot.github.io/I-D/cache-header/
> >>
> >> Comments? I think the primary audience here is proxy cache and CDN vendors, and their users.
> >>
> >> Cheers,
> >>
> >>
> >>
> >> Begin forwarded message:
> >>
> >> From: internet-drafts@ietf.org
> >> Subject: New Version Notification for draft-nottingham-cache-header-00.txt
> >> Date: 7 September 2018 at 4:41:52 pm AEST
> >> To: "Mark Nottingham" <mnot@mnot.net>
> >>
> >>
> >> A new version of I-D, draft-nottingham-cache-header-00.txt
> >> has been successfully submitted by Mark Nottingham and posted to the
> >> IETF repository.
> >>
> >> Name: draft-nottingham-cache-header
> >> Revision: 00
> >> Title: The Cache HTTP Response Header
> >> Document date: 2018-09-07
> >> Group: Individual Submission
> >> Pages: 7
> >> URL:            https://www.ietf.org/internet-drafts/draft-nottingham-cache-header-00.txt
> >> Status:         https://datatracker.ietf.org/doc/draft-nottingham-cache-header/
> >> Htmlized:       https://tools.ietf.org/html/draft-nottingham-cache-header-00
> >> Htmlized:       https://datatracker.ietf.org/doc/html/draft-nottingham-cache-header
> >>
> >>
> >> Abstract:
> >>  To aid debugging, HTTP caches often append headers to a response
> >>  detailing how they handled the request.  This specification codifies
> >>  that practice and updates it for HTTP's current caching model.
> >>
> >>
> >>
> >>
> >> Please note that it may take a couple of minutes from the time of submission
> >> until the htmlized version and diff are available at tools.ietf.org.
> >>
> >> The IETF Secretariat
> >>
> >>
> >> --
> >> Mark Nottingham   https://www.mnot.net/
> >>
> >
> >
> > --
> > Kazuho Oku
>
> --
> Mark Nottingham   https://www.mnot.net/
>


-- 
Kazuho Oku