Skip to content

Offline

Tony Boyles edited this page Jul 16, 2019 · 3 revisions

MicrobeTrace works offline in two complementary senses of the term:

  1. MicrobeTrace never sends data to a server. Instead, it performs all of its computations on your computer. (For more on this, see Security.)
  2. MicrobeTrace can run without internet access.

MicrobeTrace employs browser-based caching technology to make it available offline to users who've used it before. To make use of this feature, simply launch the MicrobeTrace App. To prove that it is working, disconnect your computer from the internet (check it by going to an arbitrary website and confirming that it doesn't load) and launch the MicrobeTrace App. MicrobeTrace will run entirely without internet access.

The Secret Sauce: Cacheing

MicrobeTrace leverages serviceworkers to manage your browser's cache. This means that there's a tiny program in your browser that acts like a server, but is all on your machine. When that program hears you request data from the internet, it checks to see if it has a copy. If it does, it sends you that copy instead of the one from the internet. This happens really, really quickly. The one downside is, sometimes the copy on the internet gets updated, but the serviceworker doesn't get the memo. If that happens and you need the new version...

Clearing the cache

If you want to be absolutely certain that you are working with the latest available version of MicrobeTrace, then you can clear your browser cache and launch MicrobeTrace to download a fresh copy from the server.

Please note that in general this is unlikely to present any advantage over allowing MicrobeTrace to update itself automatically.

Clone this wiki locally