Termerly logo

Service worker fully flushes on sign-out

Released
TB

Tomislav Babic

One more layer of the sign-out cleanup: when you sign out, the service worker now force-unregisters, the cache APIs flush, and any precached offline pages get invalidated alongside the session cookie.

This is the change that finally kills the class of bugs where users would sign out, sign back in as a different user on the same browser, and briefly see a flash of the previous user's data because the service worker was still serving cached responses.

If you share a browser with someone (designer + dev pairing, a demo laptop, a customer-success terminal), this is the change that lets account switching feel safe.

May 5, 2026

Activity feed

  • MJ
    Meera Joshi

    Unregistering before clearing the cookie is the right order. Subtle but correct. Avoids the window where a stale worker could serve cached responses to a logged-out user.

    May 20, 2026

    Replay

  • Elena Vasquez
    Elena Vasquez

    We share a browser at the office during demos. The "I signed out but the previous user is still showing" bug was a constant source of awkwardness. Glad to see it gone.

    May 17, 2026

    Replay