← OneToolbox

Offline

Last updated 14 November 2026 · the honest version of "works offline"

The rule

OneToolbox works offline after the first launch; the first launch needs the network once so the app shell, its scripts, its styles and these legal pages can be stored on the device. Launch an installed build for the first time with the network off and you will see a plain page explaining exactly that, instead of a broken app. The single-file portable edition needs no network at all.

What is cached

The service worker precaches the app shell (index.html), every script and stylesheet under assets/, the five bundled libraries under vendor/, the manifest, the icons, and all seven legal pages. Screenshots, the portable download and the service worker itself are deliberately not precached. The exact list is generated from the files on disk by tools/stamp-sw.mjs, so it cannot drift from what actually ships.

What is not cached

How updates work

There is no background refresh that could quietly overwrite the shell with a different page. When files change, the build stamps a new service-worker version from a hash of the precached bytes, the new worker installs a fresh cache, and the old caches are deleted on activation. While online, the browser checks /sw.js for that new version; _headers serves it with Cache-Control: no-cache. The check touches only our own host and carries no file or personal data, though the host may log IP addresses as any web server does.

Verify it

  1. Open the app once while online.
  2. Press F12 → Network → set Offline, then reload.
  3. The full app loads. Open Privacy or Terms — each shows its own content, not the app shell.
  4. Run any tool. It completes at the same speed as online.

These steps are automated in tools/test-sw.cjs and tools/test-csp.mjs.