2 ms·
> With WebBundles I can call 2 different things, in two different WebBundles https://example.org/good.js https://example.org/good.js, and that can be different
by saagarjha 6y ago
> With WebBundles I can call 2 different things, in two different WebBundles https://example.org/good.js https://example.org/good.js, and that can be different from what the wider web sees as https://example.org/good.js https://example.org/good.js.
I can also do that on my server based on whatever criteria I want, just by returning different content. How is this significantly different than the problem you've brought up?
- xg15 6y agoThe criteria are well-known and basically restricted to what is contained in an HTTP request. With web-bundles (like with service workers) the logic which actual resource the URL resolves to is instead deeply embedded into the browser. At least, that's my understanding.
- jefftk 6y agoWe're talking about what the server decides to put in the initial HTML file you request. Since those are almost never served cacheable to the client, the server can just randomize the URLs it produces.
- Izkata 6y agoBased on the example at [0], my understanding is that no, you can control and serve up "/good.js" from your domain, but webbundles allow you to override "https://example.com/good.js" https://example.com/good.js" while within the context of your bundle - a totally different domain you don't control. [0] https://www.npmjs.com/package/wbn https://www.npmjs.com/package/wbn