nytimes / kyt

Starting a new JS app? Build, test and run advanced apps with kyt 🔥
https://open.nytimes.com/introducing-kyt-our-web-app-configuration-toolkit-9ccddf6f6988
Other
1.92k stars 109 forks source link

RFC: Service Workers #374

Open delambo opened 7 years ago

delambo commented 7 years ago

Investigate the various webpack service worker plugins and sw-cache/toolbox and create an RFC for Service Workers in kyt.

I'm going to assign this to myself because we will need some internal work to test this against our apps, but feel free to do your own investigation and POC. I'd like a good, flexible implementation.

janhoogeveen commented 7 years ago

This should help: https://github.com/jeffposnick/create-react-pwa#adding-in-a-service-worker

janhoogeveen commented 7 years ago

We made a beginning on this spike in our own fork.

All static assets are cached properly. All that remains is making sure the routes themselves are cached as well, otherwise reloading while offline is still impossible.

felipesilva commented 7 years ago

Issues found on create-react-app while integrating SW https://github.com/facebookincubator/create-react-app/issues/2554