Bfcache Eligibility

Make back and forward navigations restore instantly from the browser's back/forward cache: run the DevTools back/forward cache test and read its not-restored reasons, clear blockers in the order they usually occur (unload handlers moved to pagehide, Cache-Control: no-store on pages that do not need it, open WebSocket, BroadcastChannel and IndexedDB connections closed on pagehide, a window.opener reference), refresh stale state on pageshow, and measure the restore rate in the field with the notRestoredReasons API. Use when someone says "the back button reloads the whole page", "going back loses the scroll position and the filters", "Lighthouse flags back/forward cache" or "why is our page not bfcache eligible". Not for poor LCP, INP or CLS (web-vitals-triage), server or CDN data caching (application-caching), or offline support (pwa-service-worker).

greenblacked Updated
The twenty-nine plugins: coding, family, gamedev, operations, delivery, security, manager, personal, career, design, llm, data, techdocs, assurance, client-apps

File contents

greenblacked/AI commit 9cd89a5f43

Frequently asked questions

npx get-skill add greenblacked/bfcache-eligibility