![Sofia Emelianova](https://web.dev/images/authors/sofiayem.jpg) Sofia Emelianova [GitHub](https://github.com/sofiayem)

<br />

Back/forward cache (or bfcache) is a browser optimization that enables instant back and forward navigation.

[Video](https://www.youtube.com/watch?v=Y2IVv5KnrmI)

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.

  > [!TIP]
  > **Tip:** Test bfcache in a guest profile or incognito mode.

- Run **Lighthouse** that [also includes the bfcache test](https://developer.chrome.com/docs/lighthouse/performance/bf-cache.md.txt).

- Collect the "not restored" reasons from actual users with the [Back/forward cache notRestoredReasons API](https://developer.chrome.com/docs/web-platform/bfcache-notrestoredreasons.md.txt).

- Learn about and fix the most common problems that prevent bfcaching.

- Test a bfcache fix by, for example, [mocking a response header with overrides](https://developer.chrome.com/docs/devtools/overrides.md.txt).

For more information, see:

- [Back/forward cache](https://web.dev/articles/bfcache)
- [Test back/forward cache](https://developer.chrome.com/docs/devtools/application/back-forward-cache.md.txt)
- [Back/forward cache notRestoredReasons API](https://developer.chrome.com/docs/web-platform/bfcache-notrestoredreasons.md.txt)
- [Case study](https://web.dev/case-studies/yahoo-japan-news-bfcache)