Help us make DevTools Tips better! Fill out this survey to tell us more about your DevTools habits and frustrations.
Check if your site can be instantly reloaded from bfcache
Most browsers are now able to instantly go back to previously visited pages without having to wait for them to load. This ability is powered by the back/forward cache (or bfcache). Firefox, Safari, and Chromium-based browsers support it, and it's massive performance boost when hitting the back button.
The way the bfcache works is by storing a snapshot of the page in memory, in a way that no work needs to be done when going back to it, other than displaying the pixels on the screen.
Not all web pages can be cached in bfcache though. Chrome and Edge have a new tool that lets you detect potential issues with a page that might prevent it from being bfcache'd.
To test if your page can be cached:
- Open the Application tool.
- Click Back/forward cache in the side bar.
- Click the Test back/forward cache button.
A report will be displayed, telling you whether your page can be cached, and if not, why.