How to make compatible with Web Bundles?
Hello. I & a lot of others are excited by the idea of being able to exchange web pages offline with a friend, by using Signed Bundled Web Package/Web Bundles.
I'm concerned that http-cache-partitioning breaks many of these use cases. If I have a website on example.com & I'm using a CDN such as unpkg.com to get JS modules, and I have signed web bundles of my example.com site and signed bundles for the unpkg.com modules, I should be able to share these bundles with a friend offline, & they should then have everything they need to use my site offline. However with this http-cache-partitioning, it's unclear how the offline example.com site would be able to get access to the other signed web bundles for the unpkg.com modules that my friends also has got. HTTP cache partitioning is a new restriction that breaks example.com's ability to see these unpkg.com assets that were offline shared.
I'd like to see http cache partitioning provide some means to allow Web Bundles/Web Packages to continue to be useful for offline sharing.
I've also raised this question in the HTTP cache partitioning design review, albeit I appear to be a month late.
/cc @jkarlin
Adding Kinuko and Tsuyoshi who are looking into supporting signed exchanges with http cache partitioning.
In short, there are efforts to make sure that signed exchanges work with cache partitioning, although I am not completely familiar with signed exchanges to see how the above offline example would work.
/cc @kinu /cc @horo-t
As far as I know, there is no way to load JS modules in a local Web Bundle file (unpkg.com.wbn) from a page in another Web Bundle file (example.com.wbn). The JS modules must be included in the Web Bundle file (example.com.wbn). This is not related to http-cache-partitioning.
Is this answer your question?
/cc @jyasskin