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

Kazuho Oku <kazuhooku@gmail.com> Tue, 13 November 2018 08:19 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 66501130DD6 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 13 Nov 2018 00:19:50 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.753
X-Spam-Level:
X-Spam-Status: No, score=-2.753 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] 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 W2qwHun9eBx2 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 13 Nov 2018 00:19:48 -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 0202E130DC1 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 13 Nov 2018 00:19:47 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.89) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1gMTsW-0003Jd-SE for ietf-http-wg-dist@listhub.w3.org; Tue, 13 Nov 2018 08:16:56 +0000
Resent-Date: Tue, 13 Nov 2018 08:16:56 +0000
Resent-Message-Id: <E1gMTsW-0003Jd-SE@frink.w3.org>
Received: from uranus.w3.org ([128.30.52.58]) by frink.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from <kazuhooku@gmail.com>) id 1gMTsU-0003Hf-CJ for ietf-http-wg@listhub.w3.org; Tue, 13 Nov 2018 08:16:54 +0000
Received: from www-data by uranus.w3.org with local (Exim 4.89) (envelope-from <kazuhooku@gmail.com>) id 1gMTsU-00050K-7V for ietf-http-wg@listhub.w3.org; Tue, 13 Nov 2018 08:16:54 +0000
Received: from titan.w3.org ([2603:400a:ffff:804:801e:34:0:4c]) by frink.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from <kazuhooku@gmail.com>) id 1gMPIi-0005Ny-Nm for ietf-http-wg@listhub.w3.org; Tue, 13 Nov 2018 03:23:40 +0000
Received: from mail-lj1-x22c.google.com ([2a00:1450:4864:20::22c]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from <kazuhooku@gmail.com>) id 1gMPIh-0004B6-3R for ietf-http-wg@w3.org; Tue, 13 Nov 2018 03:23:40 +0000
Received: by mail-lj1-x22c.google.com with SMTP id k19-v6so9490321lji.11 for <ietf-http-wg@w3.org>; Mon, 12 Nov 2018 19:23:19 -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=kvqy/AUdjpPIDf/BkytHfuGBMotaR/1u3/6hPJ/F/4k=; b=tTUJK63qEFfTuvpRUtEPpAf2elOaFFqRX5nRDV8V+kx+zxnVsOC6t4ByjpgBowPDlR RxsmQEc9wALSy3EVS7bJulfgVWTZQeGLBIJvCFuKKpWC1Q4YybcWb1JU9TTQ3AohkUS1 TzMONAQm4tWQH9ZRzOzYWW8xI3L7atKTzWIvL5U6P1Ef3LiV8D0Vr4Fb7nmHU8lpgwCu dPEUBfdqSwmk+e6Q5lqlGWWVvomfPQ7HnvzVC8AgrOgrFr42HhKxMHg+ygWRIVaqlYCc Ea26XMnUpgamijuVEayV0dclZA5zhC/eoYGMH4pNm61vpzq1E+YLAZI399f7VqzcJrY/ UEKQ==
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=kvqy/AUdjpPIDf/BkytHfuGBMotaR/1u3/6hPJ/F/4k=; b=I8QOaBTRDaNJMPPt08sZ8N4ZBdgwF5/yD5/Y+UHyEjmI7OQqa71tPbIt5KBwoZY+/3 w8pJi+ghlQgJM+jy1vImz2+oRiaPd7tJFby8y00tcVgbpdPUoDp9RFQhCytHqkTNNqe2 HDRfjpKGtMOk9G4j3OiQOzFot1XTORWsVHJNlwM2fMjw3J78mm4kdgI3rBniDT6pUO0C ubruw0aTJ3QLv3tM7hQ/4WAGvj8sYG27Ca7vPDn8b9D8WPQU2zcfgq9mP6ReE0CRPKJ9 n3/A6gEop4fFZNb285TniRGIHJ67cxGiMxuFnqYBZNPz4ligu1MGutJSeDia+ENDht0P 87PA==
X-Gm-Message-State: AGRZ1gLjDAqkvPLR4u7jbEThFHqZNAs++MhtKJf1mSAy6crEdVKjqhAj z5zopbMg2WmI7x7oebEVSVSqrQ7GCCOpdhHvY1Oyd7Bf
X-Google-Smtp-Source: AJdET5evKTpGpwvBJ7OmwGApy9gRd0sxNHzMr957Zldh5pQ3Ng5LY+CKG1r3UISRGxpuds+ROD8VvTG3myePicUwC/w=
X-Received: by 2002:a2e:7f04:: with SMTP id a4-v6mr2308364ljd.156.1542079396842; Mon, 12 Nov 2018 19:23:16 -0800 (PST)
MIME-Version: 1.0
References: <153630251281.11674.4222139546682549239.idtracker@ietfa.amsl.com> <AEDC275A-8CE2-48F4-B08A-8791FB0443B1@mnot.net>
In-Reply-To: <AEDC275A-8CE2-48F4-B08A-8791FB0443B1@mnot.net>
From: Kazuho Oku <kazuhooku@gmail.com>
Date: Tue, 13 Nov 2018 12:23:06 +0900
Message-ID: <CANatvzw5mMMHpXXLO3WHupn1sUeCCLuy-yy-eRj+28=b_id7zQ@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: titan.w3.org 1gMPIh-0004B6-3R 1a45e9a5b4acdef5bd70a31b82087d58
X-caa-id: 39118734a3
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/CANatvzw5mMMHpXXLO3WHupn1sUeCCLuy-yy-eRj+28=b_id7zQ@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/36057
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 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).

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