hashobject / perun

Programmable static site generator built with Clojure and Boot (HELP NEEDED!)
https://perun.io
Eclipse Public License 1.0
350 stars 38 forks source link

Add support for ServiceWorkers (a.k.a. "offline mode") #180

Open podviaznikov opened 7 years ago

podviaznikov commented 7 years ago

There is new HTML feature called ServiceWorkers. This allows to cache all needed resources and make site work offline without Internet connection.

This seems like a good feature for blogs, which can be opened once and read later.

I implemented such caching service worker for my personal site: https://podviaznikov.com/sw.js. It would be good to have something similar as perun task. GatsbyJS has such support built in. We can do something similar for sure: https://github.com/gatsbyjs/gatsby/issues/670