agilgur5 / agilgur5/front-end-base

(optim): add PWA support with OfflinePlugin

オープン
#5 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
0
フォーク
1
PR マージ指標
30日以内にマージされた PR はありません

説明

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.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。