stats4sd / Stats4SD-Resources-Site

Reposistory for the Stats4SD Resources Repository
https://resources.stats4sd.org
GNU General Public License v3.0
0 stars 0 forks source link

Save resource files locally #140

Open chrismclarke opened 7 years ago

chrismclarke commented 7 years ago

Would be great if files could be cached also. Have investigated a few options such as file-api, indexeddb and webworkers although all seem a bit limited. Tried integrating directly into service workers but failed. Suggest revisit as part of usb distribution version (with files already available) or electron desktop.

A couple links: https://medium.com/@philipp.schaechtele/asset-caching-with-service-worker-c40dcda43842

https://developers.google.com/web/fundamentals/instant-and-offline/web-storage/offline-for-pwa

https://gist.github.com/Rich-Harris/fd6c3c73e6e707e312d7c5d7d0f3b2f9

https://github.com/GoogleChromeLabs/sw-precache