Back/forward cache (or bfcache) is a browser optimization that enables instant back and forward navigation.
Watch the video to learn how to:
- Test bfcache with a click.
If bfcache isn't working:
- Instantly see the reason.
- A list of affected frames.
- A list of actionable tips.
Run Lighthouse that also includes the bfcache test.
Collect the "not restored" reasons from actual users with the Back/forward cache notRestoredReasons API.
Learn about and fix the most common problems that prevent bfcaching.
Test a bfcache fix by, for example, mocking a response header with overrides.
For more information, see: