This is a PoC of a offline send using a service worker. If you turn off your network connection and push send in /form.html then the contents of the form will be sent to /api/Post next time the network is up.
Note: data is stored in indexeddb as you can't access localstorage from the service worker.