Skip to main content
V Vatsal Trivedi
/07 Frontend utility

StaleGuard

Silent SPA stale-deploy detector using ETag and Last-Modified on tab focus. No polling, no banners.

The overview

When someone comes back to an open SPA tab, check if a newer deploy exists. No polling, no banner.

What I built

A small library that checks ETag and Last-Modified on tab focus so SPAs can reload after a deploy.

In practice

What you can do with it

3 capabilities
  1. 01

    Detect a newer deploy when someone comes back to a tab

  2. 02

    Use ETag and Last-Modified instead of polling

  3. 03

    Reload quietly, without a banner