For more details see the Back Forward Cache extension page.
Ensure instant page loading when users navigate through your website using the back and forward buttons. Enhance the website’s performance & UX by caching recently visited pages.
Enable Back Forward Cache - set Yes to enable back/forward caching for your website.
Mini Cart Update - сhoose the scenario for mini cart updates. It can be updated immediately on page restore from bfcache or only after user interaction when the page was restored from bfcache.
Exclude Pages from Caching - specify route names for pages that are not allowed to be cached by bfcache. Write each route name from new line.
To ensure the correct functioning of the Back Forward Cache module with Varnish, you need to update your .vcl file as follows:
sub vcl_deliver { <!—Update following line: --> set resp.http.Cache-Control = "no-store, no-cache, must-revalidate, ma x-age=0"; <!-- To: --> set resp.http.Cache-Control = "no-cache, must-revalidate, max-age=0"; }
Find out how to install Back Forward Cache for Magento 2 via Composer.