jekyll-offline icon indicating copy to clipboard operation
jekyll-offline copied to clipboard

What exactly does this do?

Open wslack opened this issue 8 years ago • 3 comments

Is the use case for people visiting websites, or people doing development?

wslack avatar Aug 19 '16 17:08 wslack

@wslack The use case is for folks visiting the websites. Once they load the site, the service worker will be registered and cache content on their device. This will enable web site visitors to read the content offline/without a network connection.

jeremiak avatar Aug 21 '16 04:08 jeremiak

I think it would be helpful/interesting to define specific use cases for sites or pages that this makes the most sense for. Service workers make more sense on certain sites, imo.

gemfarmer avatar Sep 22 '16 15:09 gemfarmer

Also, is it a good idea to cache all pages of a Jekyll website with more than 500 posts, for example?

https://nicolas-hoizey.com/2017/01/how-much-data-should-my-service-worker-put-upfront-in-the-offline-cache.html

Could it be possible to cache only recent posts, with a configurable "age"?

nhoizey avatar Oct 19 '16 21:10 nhoizey