Re: How to reset ALTSVC

Martin Thomson <martin.thomson@gmail.com> Tue, 31 March 2015 22:26 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 B24C91AD291 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 31 Mar 2015 15:26:16 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.712
X-Spam-Level:
X-Spam-Status: No, score=-6.712 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, MIME_8BIT_HEADER=0.3, RCVD_IN_DNSWL_HI=-5, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] 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 zXXcdtB9_Rwg for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 31 Mar 2015 15:26:15 -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 2B3431AD36A for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 31 Mar 2015 15:26:13 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1Yd4Z0-0001UQ-9Y for ietf-http-wg-dist@listhub.w3.org; Tue, 31 Mar 2015 22:23:14 +0000
Resent-Date: Tue, 31 Mar 2015 22:23:14 +0000
Resent-Message-Id: <E1Yd4Z0-0001UQ-9Y@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.80) (envelope-from <martin.thomson@gmail.com>) id 1Yd4Yt-0001Ra-40 for ietf-http-wg@listhub.w3.org; Tue, 31 Mar 2015 22:23:07 +0000
Received: from mail-ob0-f172.google.com ([209.85.214.172]) by maggie.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <martin.thomson@gmail.com>) id 1Yd4Ys-0004wN-A3 for ietf-http-wg@w3.org; Tue, 31 Mar 2015 22:23:07 +0000
Received: by obvd1 with SMTP id d1so50699591obv.0 for <ietf-http-wg@w3.org>; Tue, 31 Mar 2015 15:22:40 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=5B10wyjgDWzya5hvEUQNwBqeqJByZf8n3yc4BWE4wq0=; b=HfGwx7D5ogt1dj0dAeafNWEHh8sfOK0G2m2REXkKjqvKTZISDSNvup4bXrHjMtg+LB +3b//eJ9EpEUuDLC+tgPzcA/74MCp6ezfT9j0khiKQIHi6AmiPiUlTLcWYV4JgsqTwXh iN13ldOmpglAGjlqyhgJubn4HudqyAxuu/66PtjqYpPK5+QJ7/8HGbEbsXWJeA8qFkqL nXfbVr6KvnIS+EqZ2gtx9DnzN1fDfQ1p639HqVt9uWtsMbIGP3PFPwiX7HJDjtK1SvL5 ajTg8RAfDNmWYUA5FAVcbjYmX+G24CCS1kiblnsrxVvT+jYSnV+ZBjKx/kXQsXsUU4zU F1FA==
MIME-Version: 1.0
X-Received: by 10.60.131.37 with SMTP id oj5mr20734827oeb.77.1427840560468; Tue, 31 Mar 2015 15:22:40 -0700 (PDT)
Received: by 10.202.48.151 with HTTP; Tue, 31 Mar 2015 15:22:40 -0700 (PDT)
In-Reply-To: <CACMu3tp8EeMxfgbB4tf2u8mxxnadno6mYEgqbPdb+gEVmVjPow@mail.gmail.com>
References: <CACMu3tp8EeMxfgbB4tf2u8mxxnadno6mYEgqbPdb+gEVmVjPow@mail.gmail.com>
Date: Tue, 31 Mar 2015 15:22:40 -0700
Message-ID: <CABkgnnU2f9WHs=Ci0XTFEPPd1VKP6Fzrquu3-Jv-XQ0WeK9Tzg@mail.gmail.com>
From: Martin Thomson <martin.thomson@gmail.com>
To: Bence Béky <bnc@chromium.org>
Cc: HTTP <ietf-http-wg@w3.org>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=209.85.214.172; envelope-from=martin.thomson@gmail.com; helo=mail-ob0-f172.google.com
X-W3C-Hub-Spam-Status: No, score=-6.9
X-W3C-Hub-Spam-Report: AWL=0.897, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_IRR=-3, W3C_WL=-1
X-W3C-Scan-Sig: maggie.w3.org 1Yd4Ys-0004wN-A3 babfde0a7d89dad96a40ed461d6904dc
X-Original-To: ietf-http-wg@w3.org
Subject: Re: How to reset ALTSVC
Archived-At: <http://www.w3.org/mid/CABkgnnU2f9WHs=Ci0XTFEPPd1VKP6Fzrquu3-Jv-XQ0WeK9Tzg@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/29149
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 31 March 2015 at 13:51, Bence Béky <bnc@chromium.org> wrote:
> I would like to be able to construct HTTP/1.1 Alt-Svc headers and HTTP/2
> ALTSVC frames that indicate that the client should forget all previously
> discovered alternative services for that given origin.  (With the caveat
> from the earlier "Alt-Svc alternative cache invalidation (ext#16)" thread
> that they would only invalidate alternative services that came from the same
> discovery mechanism.)  The most obvious way would be to send an Alt-Svc
> header field with an empty value, or an HTTP/2 ALTSVC frame with an empty
> Alt-Svc-Field-Value.  However, the current draft calls for at least one
> alternative in Section 3, and a mandatory Alt-Svc-Field-Value field in
> Section 4.  I propose to allow zero alternatives like this:
>
> Alt-Svc = *( alternative *( OWS ";" OWS parameter ) )
>
> and to make Alt-Svc-Field-Value optional.

You could send a redirect-to-self value without changing the grammar
too.  Or you could set the max-age to 0.  Or both.