Closed 3cp closed 4 years ago
Shelve branch offline-support.
It seems defeating the purpose to use service worker to catch bundled js files. If user turned off cache in dev tool, the service worker does not help on performance, the caches are bypassed. If user didn't turn off cache in dev tool, the normal HTTP cache on the bundled js files (with expire header set to 365 days) does the job with far less complexity.
Add another service worker to the main domain
gist.dumber.app
to cacheindex.html
and all js files.So the app can work largely without downloading again. This can boost performance.
Need to check latest
index.html
to invalid old offline cache, maybe don't cacheindex.html
, just cache js files.