Re: Submitted new I-D: Cache Digests for HTTP/2

Ilya Grigorik <ilya@igvita.com> Wed, 13 January 2016 21:08 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 (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id C5D1C1A011D for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 13 Jan 2016 13:08:55 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.28
X-Spam-Level:
X-Spam-Status: No, score=-6.28 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham
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 Vsk9ZM7yP9-Z for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 13 Jan 2016 13:08:54 -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 008B91A0117 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 13 Jan 2016 13:08:53 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1aJSax-0003fk-3M for ietf-http-wg-dist@listhub.w3.org; Wed, 13 Jan 2016 21:04:43 +0000
Resent-Date: Wed, 13 Jan 2016 21:04:43 +0000
Resent-Message-Id: <E1aJSax-0003fk-3M@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <ilya@igvita.com>) id 1aJSat-0003eR-U0 for ietf-http-wg@listhub.w3.org; Wed, 13 Jan 2016 21:04:39 +0000
Received: from mail-vk0-f52.google.com ([209.85.213.52]) by lisa.w3.org with esmtps (TLS1.2:RSA_ARCFOUR_SHA1:128) (Exim 4.80) (envelope-from <ilya@igvita.com>) id 1aJSas-0002FY-DC for ietf-http-wg@w3.org; Wed, 13 Jan 2016 21:04:39 +0000
Received: by mail-vk0-f52.google.com with SMTP id k1so268884078vkb.2 for <ietf-http-wg@w3.org>; Wed, 13 Jan 2016 13:04:17 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=igvita-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=JSmYEb7QUZkYxYIaY+iB2G3gPDenRCsiRpEu7eFi/24=; b=XWvEScoikaOMRl/xsRowrqrLNceaaDmFUEIV60IpNNJSB2I0a68Wk/VazF1gRbnimf xumUCtXsdJq5qhgZYM75IUWx29I1UOk/2EKJ5HeQxMkn4PDpU0uSqVaQCwzKaXHDAI64 qHCIIGyLuXP+wf0rZKQvZ+bOSIqOS9tHT0OU5YmgugOQSMvih2T4JH+hMDEMMaQFDYRt ZKTuMAS/haSdWVRO0YiTYwG7Qv39h/0MYl33L1fsjeE/INe6hF7U0yQDjwKnSOxvMJYx C3RCUy/hBHTEAYYj5wS64pqSNT7qNEC+s3xyZ1ZLrQoqGN0zcRgKwc8n7dKnkVo76Bx5 fBmg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=JSmYEb7QUZkYxYIaY+iB2G3gPDenRCsiRpEu7eFi/24=; b=gJRupdct6iGlYBcWdb4gUOahfCBVQ9tzRU9qqT7az9E9QpIKO9u+GXb+ma56bBDuP8 LHDhfGkSRftw1KVs2Ax+YGbSGKRqaN1HAKp77yjS6lgCOeThGbQKvgMEx/9qxxD94+7W YsaEo+RXQVkpSBk02LEPGCD1JihN5d8Pkpzl4ZYVmch2a1XShpIXqLcJbLAJ4PaZ3dNU txkKvly4hDJVpWlG2OCaJhE1xJtNG7kxMWcd0z+Ld3+ltJJfCy923vsiFSFEuFknNat3 T85DeqWdtMPaMl8LU4HxTOoQC3zPyaTSwZkfFZJqr+uWT0Iz+SIt6lasbG58/pWpTws0 +G1Q==
X-Gm-Message-State: ALoCoQlDdS4lTihalpQxGVXARmjgaR+pBNqZorPa/TACW1uT5H34kMnsnIKdCo3OgeEaSNCmkkERFGS02mwea2DGVK6aDWnQDg==
X-Received: by 10.31.5.84 with SMTP id 81mr191371vkf.123.1452719051973; Wed, 13 Jan 2016 13:04:11 -0800 (PST)
Received: from mail-vk0-f41.google.com (mail-vk0-f41.google.com. [209.85.213.41]) by smtp.gmail.com with ESMTPSA id d20sm483192vkf.12.2016.01.13.13.04.10 for <ietf-http-wg@w3.org> (version=TLSv1/SSLv3 cipher=OTHER); Wed, 13 Jan 2016 13:04:10 -0800 (PST)
Received: by mail-vk0-f41.google.com with SMTP id i129so130697535vkb.0 for <ietf-http-wg@w3.org>; Wed, 13 Jan 2016 13:04:10 -0800 (PST)
X-Received: by 10.31.8.4 with SMTP id 4mr212101vki.60.1452719050505; Wed, 13 Jan 2016 13:04:10 -0800 (PST)
MIME-Version: 1.0
Received: by 10.103.97.194 with HTTP; Wed, 13 Jan 2016 13:03:30 -0800 (PST)
In-Reply-To: <EDB7D8A6-9121-4268-8920-223E9BE16B19@greenbytes.de>
References: <CAAMqGzYUoCMxBxUEY9wfLOHZp7nrO4d1q5JZo=96pfEbVS1-ew@mail.gmail.com> <652C3E3A-3DA6-40BB-82FF-01A7D65FF65C@lukasa.co.uk> <CABCZv0piAoDnA1J+2pJ3HyF_iRwj9AaFGfonFjdKGfYr=cGZgQ@mail.gmail.com> <CAKRe7JG16u+MteBz4Rz7iCnHxfhLZ=QbWekrhgNhNkq+pKhVAg@mail.gmail.com> <CANatvzyT_ohm5hEcJ1o8B+AEa70607E-LUnPp5cD8sSO8X0HKA@mail.gmail.com> <56958980.1030307@treenet.co.nz> <CANatvzyOnMSLHfXcDrGSjbtZi5nFX2e9_4tHOjmR2OqBWEYUcg@mail.gmail.com> <EDB7D8A6-9121-4268-8920-223E9BE16B19@greenbytes.de>
From: Ilya Grigorik <ilya@igvita.com>
Date: Wed, 13 Jan 2016 13:03:30 -0800
X-Gmail-Original-Message-ID: <CAKRe7JHh9maCnBgODU_rr5TFVmy3Tdm2bwEp2hHsONW8e_LTjw@mail.gmail.com>
Message-ID: <CAKRe7JHh9maCnBgODU_rr5TFVmy3Tdm2bwEp2hHsONW8e_LTjw@mail.gmail.com>
To: Stefan Eissing <stefan.eissing@greenbytes.de>
Cc: Kazuho Oku <kazuhooku@gmail.com>, Amos Jeffries <squid3@treenet.co.nz>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary="001a1144102af6c4d005293d82c3"
Received-SPF: pass client-ip=209.85.213.52; envelope-from=ilya@igvita.com; helo=mail-vk0-f52.google.com
X-W3C-Hub-Spam-Status: No, score=-5.8
X-W3C-Hub-Spam-Report: AWL=-0.193, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, W3C_AA=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: lisa.w3.org 1aJSas-0002FY-DC 587dea784fc30bd629791d3297835282
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Submitted new I-D: Cache Digests for HTTP/2
Archived-At: <http://www.w3.org/mid/CAKRe7JHh9maCnBgODU_rr5TFVmy3Tdm2bwEp2hHsONW8e_LTjw@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/30921
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>

On Wed, Jan 13, 2016 at 1:40 AM, Stefan Eissing <
stefan.eissing@greenbytes.de> wrote:

> > To summarize, the draft utilizes the fact that HTTP/2 multiplexes HTTP
> > requests into a single, ordered stream to make things simple.
> > Considering the fact that we need to rely on HTTP/2 to push things
> > anyways (that is the primary target of the draft), I think that is a
> > reasonable trade-off.
>
> There might be use cases to
> a) transport a cache digest over HTTP/1.1
> b) expose a cache digest to a web application
>
> I think the draft could define a header field for this purpose
> and describe its use. Specifically
> - HTTP/1.1 clients should make it a Connection header
> - HTTP/1.1 to H2 transformers may use it in calculating their
>   CACHE_DIGEST frames (depending on their caching strategy)
> - similar for H2 to HTTP/1.1 gateways
>
> So this header, let's call it "Cache-Digest" for the sake of
> discussion, could appear in HTTP/1.1 requests or on web server
> and clients internal APIs:
>
> ...
> Cache-Digest: <base64url encoded, golombset compressed digests>
> Connection: Cache-Digest
> ...
>
> The question is what a H2 origin server does with such a header,
> should it appear. Ignore, discard?
>
> I don't see that the draft should care about H2 header
> compression efficiency of such a beast. Sending it over H2
> seems more a curiosity to me.


Agreed. As was highlighted previously, exposing it via a header makes it
accessible to web developers (and removes the requirement for UA to support
this "natively" to get any benefit or use), which (to me, at least) far
outweighs the benefits of saving a few bytes.

ig