contao / core-bundle

[READ-ONLY] Contao Core Bundle
GNU Lesser General Public License v3.0
123 stars 58 forks source link

PWA: Register service worker on contao backends #1532

Closed may17 closed 1 year ago

may17 commented 6 years ago

One common problem while working with service workers and contao is that you always have to register two serviceworkers. One for the frontend with scope "/" and one for the backend with scope "/contao" to ensure that the frontend service worker is not responsible for the backend and does not wait for opened backend tabs.

We could also combine this with an default offline page instead of showing the downasaur :)

leofeyer commented 6 years ago

Sounds reasonable. How would we do that? 😄

may17 commented 6 years ago

I‘ll create an pull request :)

stefansl commented 5 years ago

Would be a nice feature, when Contao could write the sw.js for us. With all features like cache invalidation, assets caching ...