title: How to make my single-HTML web page available offline in Chrome?
body: <p>I'm hosting a single-HTML web page (all design elements included in the .html file itself) on my webserver, and I'd like to make it available for my users when they are offline. It should work like this: when the user is online, he visits my web page, Chrome saves the .html file locally; when the user is offline and he tries to visit my web page, Chrome is using the local .html file instead. JavaScript must work on the webpage even in offline mode. The user must never see a <em>You are offline</em> error message when visiting my page, and the saved copy of my page mustn't expire from the browser's cache for at least 2 weeks. Everything must work automatically for the user, no need to change Chrome settings and no need to install Chrome extensions. Is this possible?</p>
  
  <p>The included JavaScript is smart enough to use <code>window.localStorage</code> to save data, and sync it with the server as soon as the user is online again.</p>