Which browsers nowadays support a back-forwards cache (bfcache)?
A back-forwards cache is a browser's in-memory cache that is used when a user clicks the back button and the forward button. It stores the state of the page as it was when the user navigated away, so any changes made to the DOM should be loaded instantly.
Note that this is different from the normal caching mechanisms that all browsers have. A bfcache applies specifically when a user clicks the back button, and can handle dynamic changes in the DOM.
The only information I can find about this bfcache is years old, referencing Firefox 1.5. Do modern browsers support it? Where can I find information about it?
Firefox supports a back-forwards cache, you can find details here:
Note that the bfcache does work in newer Firefox versions like version 75, despite how old the documentation is. Note that it is easy for pages and for extensions to deactivate the bfcache by accident. I found that I had an extension installed that deactivated the bfcache on all pages.
With regards to Safari, all I can find is this article:
This article states that the Page Cache (its name for the back-forwards cache) is disabled on all pages that use HTTPS, which in today's web, is a large portion of them.
According to this web.dev article from Google, Chrome does support this feature:
Starting in version 86, Chrome enabled bfcache for cross-site navigations on Android for a small percentage of users. In subsequent releases, additional support slowly rolled out. Since version 96, bfcache is enabled for all Chrome users across desktop and mobile.
See chromestatus for this feature.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With