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

Ilya Grigorik <ilya@igvita.com> Thu, 14 January 2016 14:18 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 BD3151B3524 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 14 Jan 2016 06:18:27 -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 KeP-k1cg25se for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 14 Jan 2016 06:18:26 -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 1091A1AD0CF for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 14 Jan 2016 06:18:25 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1aJifJ-0005JA-3t for ietf-http-wg-dist@listhub.w3.org; Thu, 14 Jan 2016 14:14:17 +0000
Resent-Date: Thu, 14 Jan 2016 14:14:17 +0000
Resent-Message-Id: <E1aJifJ-0005JA-3t@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <ilya@igvita.com>) id 1aJifE-0005IS-7f for ietf-http-wg@listhub.w3.org; Thu, 14 Jan 2016 14:14:12 +0000
Received: from mail-vk0-f45.google.com ([209.85.213.45]) by maggie.w3.org with esmtps (TLS1.2:RSA_ARCFOUR_SHA1:128) (Exim 4.80) (envelope-from <ilya@igvita.com>) id 1aJifC-00072I-2h for ietf-http-wg@w3.org; Thu, 14 Jan 2016 14:14:11 +0000
Received: by mail-vk0-f45.google.com with SMTP id k1so280501952vkb.2 for <ietf-http-wg@w3.org>; Thu, 14 Jan 2016 06:13:48 -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=G7t4mIMg0t2JqC5ePRd0HVlEr8htFUY9nhZ0X4C6QEQ=; b=JDLpLb9ZKZtQ2vVZGYf7mUalz9BxJXht0ri04kUPAVNB7gX9APmPUiXRyqDkiiunm6 wrEDFMLHlAOLZS2fXBMgNbjAhgwfFyIRr2buAUGEvtwsICNro1cCwDXD0uFX+24JFAXV MpTIfumQ0D7miakYuEH+XSVblY5wrYbi/a2q5/n0dzRgl/EtXDj3bMyysyzDxG+U0VwI ki5ae40sByxHelyZtAQw62pWQv3bdEO4QcZRUY816cfI6nG72nMLtgPeZlhy5rPvADb8 mNE+h58G+e4Ok2QXLX0TFal30cqw/BmuspYhT6WY4FWs7Qxq9Wnn5JKrGmR/ebsp8XJ1 ZaFg==
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=G7t4mIMg0t2JqC5ePRd0HVlEr8htFUY9nhZ0X4C6QEQ=; b=CIZS2y/4EwmCt1syA09725vDNBUJ8G9OzWHn9lwYt/ynADfVynTCkxsTOCdsS9arCg 1oy5tvSqtk1mEivj9TQcOCWsAgRxTM9IXWluEr8aQyTOnlWUHCcUOJwqjk1BHkQ+bbKv eQa36fpdxnAbw/EbHSY5e4beK75dPfLz0yMZhLdkzsVAiakOalDJd8VGqWeUk+n3zJDL qo072hNDTWhyuNDeSlld411Poma6t2XUss5L4KZFN8ysj6kmGRRjQXsNPFUQorhM7YCU XOatKxEen1l4QIgFRd9Vtq0KEYBQWMGNve4kfdkWC0cSkggrJR5CKb6nG+DPB96dQMTY xurw==
X-Gm-Message-State: ALoCoQkFAzKz3YwMvQw/B1OxFh1IVs0W+q59UVAt5gwvk+KbVh7EZ6NCNm7RTgo419u5iJgFoNnene+stgnpGEaUOWHU2Y8D/g==
X-Received: by 10.31.148.144 with SMTP id w138mr3130786vkd.44.1452780823206; Thu, 14 Jan 2016 06:13:43 -0800 (PST)
Received: from mail-vk0-f47.google.com (mail-vk0-f47.google.com. [209.85.213.47]) by smtp.gmail.com with ESMTPSA id b77sm1260448vke.6.2016.01.14.06.13.41 for <ietf-http-wg@w3.org> (version=TLSv1/SSLv3 cipher=OTHER); Thu, 14 Jan 2016 06:13:41 -0800 (PST)
Received: by mail-vk0-f47.google.com with SMTP id k1so280501334vkb.2 for <ietf-http-wg@w3.org>; Thu, 14 Jan 2016 06:13:41 -0800 (PST)
X-Received: by 10.31.149.78 with SMTP id x75mr3303391vkd.103.1452780821078; Thu, 14 Jan 2016 06:13:41 -0800 (PST)
MIME-Version: 1.0
Received: by 10.103.97.194 with HTTP; Thu, 14 Jan 2016 06:13:01 -0800 (PST)
In-Reply-To: <CANatvzw6NpbpA_56GbSiCH2yEQoAuaGtXneOvrogBfucqrC8Qw@mail.gmail.com>
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> <CAKRe7JHh9maCnBgODU_rr5TFVmy3Tdm2bwEp2hHsONW8e_LTjw@mail.gmail.com> <CANatvzw6NpbpA_56GbSiCH2yEQoAuaGtXneOvrogBfucqrC8Qw@mail.gmail.com>
From: Ilya Grigorik <ilya@igvita.com>
Date: Thu, 14 Jan 2016 06:13:01 -0800
X-Gmail-Original-Message-ID: <CAKRe7JGUUAinAqM9yHnUp0gJm5qwq5xvMhEo+fMnffRW7Kmu7w@mail.gmail.com>
Message-ID: <CAKRe7JGUUAinAqM9yHnUp0gJm5qwq5xvMhEo+fMnffRW7Kmu7w@mail.gmail.com>
To: Kazuho Oku <kazuhooku@gmail.com>
Cc: Stefan Eissing <stefan.eissing@greenbytes.de>, Amos Jeffries <squid3@treenet.co.nz>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary="001a11426748c6eacd05294be45a"
Received-SPF: pass client-ip=209.85.213.45; envelope-from=ilya@igvita.com; helo=mail-vk0-f45.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: maggie.w3.org 1aJifC-00072I-2h b16c7e8979d4401107f581148c170609
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/CAKRe7JGUUAinAqM9yHnUp0gJm5qwq5xvMhEo+fMnffRW7Kmu7w@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/30930
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 Thu, Jan 14, 2016 at 12:55 AM, Kazuho Oku <kazuhooku@gmail.com> wrote:

> So a SW trying to send cache digest needs to send the value without
> designating it as a hop-by-hop header.  And that means that if a H2
> origin server sees the header, it needs to determine if the request
> came through an intermediary, and only use the value if it did not.
> Or else, a server might end up repeatedly pushing resources to a
> caching proxy that already has them cached.
>
> This looks like a hack to me, and I am not sure if it should be
> permitted within a specification, even though I believe it would work
> effectively (as we are doing in H2O).
>

With HTTPS in place, I think you can make some reasonable simplifying
assumptions here.. that'll make things work in practice.

ig