W3C home > Mailing lists > Public > public-webappsec@w3.org > October 2014

Re: [webappsec] SRI : allow multiple integrity attributes or ni:// uris?

From: Devdatta Akhawe <dev.akhawe@gmail.com>
Date: Mon, 6 Oct 2014 12:23:30 -0700
Message-ID: <CAPfop_3r7abdcDoUgFS_ZFv3kYirz6eAWEt9tQkdVjs5KK1-gg@mail.gmail.com>
To: Brad Hill <hillbrad@gmail.com>
Cc: "public-webappsec@w3.org" <public-webappsec@w3.org>
yes. Another reason to have this is to support two versions of a file
at the same time. This tremendously eases deployment.

On 6 October 2014 10:35, Brad Hill <hillbrad@gmail.com> wrote:
> The thread on caching got me thinking about ServiceWorker and how it
> might interact with SRI.
>
> One of the goals of SW is to transparently provide alternate
> resolutions to a fetch, perhaps based on online/offline connectivity
> or connection characteristics.  e.g. load HD images over Wifi, low-res
> ones over metered 3G, and show a styled placeholder when offline.
>
> It seems like it might be useful then to allow supplying multiple
> integrity attributes to accommodate this behavior. e.g. "this video
> should have hash ni://abc (actual content) or ni://xyz (you're offline
> placeholder content).
>
> Thoughts?
>
> -Brad
>
Received on Monday, 6 October 2014 19:24:18 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 14:54:07 UTC