react-cache-refresh
JSON →A modern, lightweight React utility (v1.0.5) that automatically detects new app versions and clears browser caches (Service Worker caches, HTTP caches) to ensure users always receive the latest application version. It works by comparing a version string from a public meta.json with the current app version, and on mismatch clears caches and reloads. Key differentiators: built-in reload cooldown to prevent infinite loops, custom metadata path support, error resilience, and zero dependencies beyond React 18/19 peer dependency. Maintained with occasional releases.
Resources
packagereact-cache-refresh ↗
API endpoints
full doc /v1/registry/react-cache-refresh