Stores
- HTTP cache
- Individual responses such as HTML, CSS and images
- bfcache
- A snapshot of the whole page in memory
bfcache keeps a whole page in memory so Back and Forward feel instant. What blocks it, the pageshow check and the DevTools test that tells you why a page missed.
bfcache, the back/forward cache, is a browser feature that stores a full snapshot of a page in memory when the user leaves it, so pressing Back or Forward restores it almost instantly without a network request. Pages with an unload listener or Cache-Control: no-store, among other things, can miss the cache.
Four quick questions, then a straight answer.
From your answers, this is quietly costing you traffic and nobody has the hours to chase it. Scaplet finds every affected page, drafts the fixes and tracks how AI answers mention you.
A data platform shipped 46 fixes without a ticket.
This looks handled. Re-check after a redesign, a migration or a big content push; that is when it breaks.
Your site is small and you have the time. Work through the steps on this page, starting with the pages that get the most traffic.
Cache-Control and related headersweb.dev's Chrome data puts back and forward navigations at about 1 in 10 on desktop and 1 in 5 on mobile, so the cache touches a real share of visits. It does not apply to soft navigations inside a single-page app.
pageshow + event.persistedpersisted is true when the page was restored from bfcache and false on a normal loadpagehideunload does, plus when a page enters bfcache. Release connections here and reopen them in pageshowunload listenerunload, and Safari does not run it reliablyrel="noopener" on links that open windowswindow.opener reference makes a page unsafe to cache// Fires on first load AND on every bfcache restore
window.addEventListener('pageshow', (event) => {
if (event.persisted) {
// Page came back from bfcache: refresh stale or sensitive state
refreshSessionState();
}
});
// Use pagehide, not unload, to release resources
window.addEventListener('pagehide', () => {
db.close(); // open IndexedDB connections can block caching
socket.close();
});In Chrome DevTools, go to Application, then Back-forward Cache, and click Run Test.
DevTools navigates away and back. On success it reports that the page was restored from the back-forward cache. On failure it lists the reasons and marks the ones you can fix as Actionable.
Remove the first actionable blocker, rerun, and repeat. Common culprits are an unload listener, Cache-Control: no-store on the document and open connections.
Lighthouse 10.0 added a bfcache audit that runs a similar test. For real traffic, count pageshow events with persisted true.
unload handler that only saves state2 questions people ask next, answered from the sources on this page.
The sources describe it as a user-experience and measurement matter, not a crawling one. It changes how fast Back and Forward feel and how field metrics are reported, so it shows up through Core Web Vitals data rather than through any documented ranking rule.
Run the Back-forward Cache test in Chrome DevTools. It lists the exact reasons and flags the actionable ones. The usual ones are unload listeners, Cache-Control: no-store, window.opener references and open connections.
The free audit reads robots.txt, sitemaps, status codes, canonicals, redirects and structured data.