Have a global fix for workers paths

Description

Currently we change __webpack_public_path__ dynamically when we need to load workers in a page.

This is done by calling resetServiceWorkersPublicPath() from app/assets/javascripts/lib/utils/webpack.js, however this requires each page to load it independently, so a global fix is preferred to this.

Additionally it causes all async chunks, worker or not, to be loaded directly and not via the CDN. This is also bad for caching, if chunks are reused between pages that use the aforementioned function and pages that do not use it.

Possible solutions

  • ...

Technical info

Edited by Lukas Eipert