Re: [Wpack] Factoring out some parts of the Web Bundle format

Larry Masinter <LMM@acm.org> Sat, 20 February 2021 01:27 UTC

Return-Path: <masinter@gmail.com>
X-Original-To: wpack@ietfa.amsl.com
Delivered-To: wpack@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 4574D3A0C00 for <wpack@ietfa.amsl.com>; Fri, 19 Feb 2021 17:27:27 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.499
X-Spam-Level:
X-Spam-Status: No, score=-1.499 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=no 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 Tc6qFj6WqcjR for <wpack@ietfa.amsl.com>; Fri, 19 Feb 2021 17:27:25 -0800 (PST)
Received: from mail-pg1-x52e.google.com (mail-pg1-x52e.google.com [IPv6:2607:f8b0:4864:20::52e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id BBB423A0BFD for <wpack@ietf.org>; Fri, 19 Feb 2021 17:27:25 -0800 (PST)
Received: by mail-pg1-x52e.google.com with SMTP id a4so6357776pgc.11 for <wpack@ietf.org>; Fri, 19 Feb 2021 17:27:25 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:references:in-reply-to:subject:date:message-id :mime-version:content-transfer-encoding:thread-index :content-language; bh=MX3mXpeA4S7U/uuPevOadzlFhKUeuW+KDx4vrRZUT6c=; b=LjzaiiW75Noza40NJnY6WGXRdNPFsv89HyIaoT/lc6unUvl1Y4SpYP8aTTilBlmJLh PePSx9+WJ9OqnVKjVDMJWsQoJLnVu4iCQgamRFO4bH7n7eOIZupNUKNyZXvJr1xm4LGS a4HwEYei3yuNaXTYZb3/LQUm0HdZ6Z5KTKpMolT7xWMvQINjQ2X6NhHD1F/5kPBtWE4V rMsPopYF4zBSZ6MerX9bAKbDvd0MJllQp2iePsx+6FxLhv1RpktzU5KiDsY4EtGI0zXI 7r/I9aQ8zztiRBf0JRZrwux7BVPD3l6Y+KqVYZVMxRAtgeJKiFahcZxm1ehoQY8z/b/Q 2mvA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:references:in-reply-to:subject :date:message-id:mime-version:content-transfer-encoding:thread-index :content-language; bh=MX3mXpeA4S7U/uuPevOadzlFhKUeuW+KDx4vrRZUT6c=; b=RosRdJ4CDjBg0uW7NraGKk9EN5wZ+UOMFjo6+/IvqmUJnhfsCpexS9WLyVPPWP+pDv Kg/k8ZWGVv5/SOP/WMHXLWUha5pIAtMEyZIQW7NA41e5Wc216QEGlW1bJgwThu0ce+u1 XO9iU7DSNYCPdO95cYdpdrMwMJdW44vFfrmQBZ78NR8K7EwDOaxuSizD1LUhEm8teK9H Pw5DHyqHWJrmMkNvCj0S7PiXm06cK+5DntZeVVcboz2G8l69pHoMizQGW8R9kH+O88dJ Bh5yxNOo89H576fNGO0jOn1OE60dmaDXTCgyoWE/vn4UqzgPmADFHzbm5QLkhJi6P3SZ KPwA==
X-Gm-Message-State: AOAM533+0nVgC4bPq60So7F1YOVEaJ3v8Adfa5jh5MsKi5K2ffA2ZoTa aJFqzP6WGQO/rzG/Lihokqg=
X-Google-Smtp-Source: ABdhPJx2B03zqaLoFk2Ur9shOtomLx87UMhHf8/UtwUDzmwCm5kvpB/lMMlegJwqP3fGh6txlFm/Ow==
X-Received: by 2002:a62:1dcc:0:b029:1ed:6bc0:8cbf with SMTP id d195-20020a621dcc0000b02901ed6bc08cbfmr162423pfd.34.1613784445125; Fri, 19 Feb 2021 17:27:25 -0800 (PST)
Received: from TVPC (c-73-158-116-21.hsd1.ca.comcast.net. [73.158.116.21]) by smtp.gmail.com with ESMTPSA id i10sm2128359pfq.95.2021.02.19.17.27.24 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Feb 2021 17:27:24 -0800 (PST)
Sender: Larry Masinter <masinter@gmail.com>
From: Larry Masinter <LMM@acm.org>
X-Google-Original-From: "Larry Masinter" <lmm@acm.org>
To: 'Daniel Ehrenberg' <littledan@igalia.com>, wpack@ietf.org
References: <e982e945eeed810a26aa7ec376126fa9@igalia.com> <f7b353b991c7ab64a9f63bee5d47ac03@igalia.com>
In-Reply-To: <f7b353b991c7ab64a9f63bee5d47ac03@igalia.com>
Date: Fri, 19 Feb 2021 17:27:23 -0800
Message-ID: <00ec01d70727$8b142070$a13c6150$@acm.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Outlook 16.0
Thread-Index: AQKenezAWLlAi4wn27HUS6HbOtSRjgIyPJbmqL+AAGA=
Content-Language: en-us
Archived-At: <https://mailarchive.ietf.org/arch/msg/wpack/BO-CveRn4s0902Cow__GjogzaqI>
Subject: Re: [Wpack] Factoring out some parts of the Web Bundle format
X-BeenThere: wpack@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Web Packaging <wpack.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/wpack>, <mailto:wpack-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/wpack/>
List-Post: <mailto:wpack@ietf.org>
List-Help: <mailto:wpack-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/wpack>, <mailto:wpack-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 20 Feb 2021 01:27:27 -0000

Why don't you use HTTP range retrieval to access parts of a  bundle? 
It's OK not to have URLs for the parts without an explicit reification.

It seemed to work for PDF.

--
https://LarryMasinter.net https://interlisp.org

> -----Original Message-----
> From: Wpack <wpack-bounces@ietf.org> On Behalf Of Daniel Ehrenberg
> Sent: Friday, February 19, 2021 11:54 AM
> To: wpack@ietf.org
> Subject: Re: [Wpack] Factoring out some parts of the Web Bundle format
> 
> On 2020-12-01 15:47, Daniel Ehrenberg wrote:
> > Hi WPACK WG,
> >
> > As I mentioned in the message "Broadening the WPACK WG charter", I'm
> > very interested in Web Bundles for subresource loading, e.g.,
> >
> https://github.com/WICG/webpackage/blob/master/explainers/subresourc
> e-
> > loading.md . The Web Bundle format has a great architecture, in terms
> > of having an extensible set of sections, to permit various different
> > usage profiles.
> > This WG could use take advantage of this architecture in order to
> > define a cleanly layered format. In particular, a few features are not
> > used for subresource loading:
> > - primary URL: not meaningful, as the bundle is not being navigated to
> > - manifest section: not used, similarly--the manifest should be linked
> > from the document which includes the subresources
> > - variants: not recommended, as content negotiation should be done
> > when deciding which bundle to include, to avoid wasteful downloads
> >
> > I think we can factor each of these features out from the core Web
> > Bundles Internet-Draft and put them into a separate Internet-Draft
> > which indicates how to use bundles to represent whole pages, much like
> > the "signatures" section was recently removed from the Web Bundles
> draft.
> > For this, I would suggest:
> > - The primary URL should be located in a separate, optional section,
> > like the manifest section.
> > - The primary URL and manifest sections should be factored out into
> > this other draft
> > - For variants, the story is a bit trickier, since it is integrated
> > into the responses section. Honestly, I'm having trouble understanding
> > the motivation for Web Bundle's variants support, e.g., what use cases
> > it is meant to satisfy. Some kinds of negotiation (e.g., with Client
> > Hints or
> > UA) extends outside of the variants model, if I understand correctly.
> > Is there something else we can do to future-proof the binary format
> > for this support, rather than including this particular format in the
> > core RFC?
> >
> > There are other additional sections which may be useful for some
> > applications. For example, within build tooling, a section could be
> > added to represent the dependency graph among subresources. So, Web
> > Bundles with this modified factoring would represent an excellent
> > basis for a variety of uses.
> >
> > What do you think?
> >
> > Thanks,
> > Dan
> 
> I've filed a few PRs against Jeffrey's draft proposal to make these
changes
> [1][2][3]. What do you think? Should we follow up on this topic in the
> upcoming IETF 110 WPACK WG meeting?
> 
> Dan
> 
> [1] https://github.com/WICG/webpackage/pull/617
> [2] https://github.com/WICG/webpackage/pull/618
> [3] https://github.com/WICG/webpackage/pull/619
> 
> _______________________________________________
> Wpack mailing list
> Wpack@ietf.org
> https://www.ietf.org/mailman/listinfo/wpack