agilgur5 / agilgur5/front-end-base

(optim): add PWA support with OfflinePlugin

Aperta
#5 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
0
Fork
1
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

https://github.com/NekR/offline-plugin supports Service Workers and falls back to AppCache

I haven't read too far in-depth into exactly how SWs work, so not sure of all the possible concerns. Off the top of my head of some issues I've previously read about are cache-busting the SW, excluding/including certain requests, and figuring out how caching app state works in tandem with the SW are all important considerations. Also not sure how useful SWs are to apps that don't have very much offline functionality; I think the caching aspect might still work better for online apps than just plain browser caching, but not really sure of all these details.

An alternative is Google's [Workbox](https://github.com/GoogleChrome/workbox), which is the successor to [sw-precache-plugin](https://github.com/goldhand/sw-precache-webpack-plugin). Based on the docs and [this chat thread](https://spectrum.chat/thread/1955e8fd-5c44-4e0a-acd9-8046e53739e2), offline-plugin is much easier to set-up and get started with.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.