Do you like this product?
Unlock Instant Navigation and Perfect Core Web VitalsBack/Forward Cache (bfcache)for Magento 2
Stop leaving performance on the table. By default, Magento disables the browser's most powerful speed feature. Our extension safely re-enables the Back/Forward Cache (bfcache), delivering instantaneous page loads on back/forward clicks, perfecting your Core Web Vitals, and creating a flawlessly fluid user experience.
Performance & Usability Boost For Your Magento 2 Store:
- Instant Page Loads: Eliminate reloads for all back and forward browser navigations.
- Improve Core Web Vitals: Drastically boost your real-user LCP and CLS scores, directly impacting SEO.
- Enhance User Experience: Create a seamless, fluid browsing journey that increases engagement and conversions.
- Reduce Server Load: Significantly decrease server requests and resource consumption, improving stability.
- Hyvä & Mage-OS Native: Flawlessly compatible with the modern Magento ecosystem out of the box.
- Google Recommended: Leverage a performance optimization praised by Google's own developer teams as a "game changer".
License:
- One-Time Payment
- Lifetime Access To Source Code
- 1 Year Free Support
- 1 Year Free Updates
Official Hyvä Triple Partner
As certified Gold, Technology, and Core Contributing partners, we build extensions to the highest Hyvä standards.
100% Open Source Code
Every line of code is unencrypted and open for you to audit, customize, and learn from.
Professionally Field-Tested
Our extensions are rigorously tested and proven in our own demanding customer projects before release.
5-Star Rating and Support
Backed by authentic customer reviews and includes one year of dedicated expert support.
Customer Feedback
We use the Ultimate Image Optimizer extension. The performance has improved considerably. The tool has been running smoothly right from the start.
We commissioned a really tricky adjustment to an extension that other agencies couldn't manage...and the guys at JaJuMa did a fantastic job! We are happy to continue working with JaJuMa.
We are very satisfied with this module. It reduces the sizes of our images and so the loading of our pages are much more faster now. We recommand this module for everybody!!!
- Back/Forward Cache Configuration
- bfcache Impact on CWV
Configurations & Screenshots
Solution
Improve Your Core Web Vitals (CWV) Field Data by up to ~8-10% !!!
By Enabling the Back/Forward Cache (bfcache) For Your Magento Store
THE PROBLEM
MAGENTO'S
HIDDEN
PERFORMANCE BOTTLENECK
Modern web browsers like Chrome, Firefox, and Safari contain a powerful, built-in optimization called the Back/Forward Cache (bfcache). It's designed to do one thing exceptionally well: make navigating back and forth between pages instantaneous. When a user clicks a link and then hits the "back" button, bfcache restores a complete, in-memory snapshot of the previous page, eliminating the need for any network requests. Considering that 1 in 10 navigations on desktop and 1 in 5 on mobile are back/forward actions, the cumulative performance gain is enormous.
Here's the critical issue for merchants: by default, Magento actively tells browsers not to use this feature. This decision creates a jarring, slow experience where users are forced to wait for pages to completely reload, even if they were just there a second ago. reload
This isn't a mistake; it's a safety measure rooted in the dynamic nature of e-commerce. Magento disables bfcache to prevent issues with stale data. For example, a cached page might show an incorrect mini-cart total or outdated stock information. This is primarily accomplished by sending a Cache-Control: no-store HTTP header, a blunt instrument that disables bfcache across the board. Data from HTTPArchive suggests that a staggering 89% of Magento sites are affected by this, leaving a massive performance opportunity untapped. This, combined with legacy JavaScript patterns like unload event listeners, effectively blocks your store from leveraging one of the web's most significant speed enhancements.
THE SOLUTION
THE JAJUMA BACK/FORWARD
CACHE EXTENSION
The JaJuMa Back/Forward Cache extension is the expertly engineered solution that bridges the gap between Magento's safety-first approach and the modern user's demand for instant performance. As the very first agency to develop a bfcache solution for Magento 2, we have an unparalleled understanding of the technical challenges and have crafted the definitive tool to overcome them.
Our extension doesn't just blindly enable bfcache; it intelligently navigates Magento's complexities to deliver speed without compromising data integrity. It works by:
-
Applying Smart Exclusions: The extension automatically prevents caching on sensitive routes like /cart, /checkout, and /customer/*, ensuring dynamic, user-specific data is always fresh and secure.
-
Handling Dynamic Content: We've engineered specific logic to manage elements like the mini-cart. It can be configured to update only after a user interacts with the restored page, preserving the lightning-fast load while ensuring data accuracy when it matters most.
-
Resolving Core Blockers: Our code safely works around the default Magento blockers, allowing the vast majority of your store's pages—categories, products, and CMS pages—to benefit from instant loads.
This extension is a no-brainer, quick-win optimization that unlocks a level of performance and user experience impossible to achieve with a default Magento or Hyvä installation.
Highlights
Back/Forward Cache for Magento 2 by JaJuMa-Develop
Magento with bfcache enabled =
Instant Page Loads for Back/Forward Navigation's - Improved UX - Improved CWV Field Data
Use Back/Forward
Cache (bfcache)
Unlock instant page loads for back/forward navigations in your Magento 2 store.
Boost Core
Web Vitals
Drastically improve real-user LCP and CLS scores, directly impacting your SEO performance.
Superior
User Experience
Eliminate reload delays and create a seamless, fluid browsing journey that customers love.
Reduced
Server Load
Cut down on unnecessary server requests, saving resources and improving stability.
Hyvä Theme
Compatible
Built with a "Hyvä-first" mindset for perfect, native integration. No compatibility module required.
See Hyvä DemoMage-OS
Compatible
Fully tested and compatible with the future of community-driven Magento.
See Mage-OS DemoDetails
Back/Forward Cache (bfcache) for Magento 2
by JaJuMa In Detail.
Performance & Usability Boost for your Magento store
Understanding Back/Forward Cache: The Web's Hidden Performance Engine
To grasp the transformative impact of this extension, it's essential to understand what the Back/Forward Cache (bfcache) is and why it's fundamentally different—and superior—to other forms of caching.
When you navigate from Page A to Page B, a standard browser discards Page A. If you click the "back" button, the browser must start from scratch: sending requests to the server, downloading assets, parsing HTML, CSS, and JavaScript, and re-rendering the entire page. This is a slow and resource-intensive process.
The bfcache changes this paradigm completely. Instead of discarding Page A, the browser takes a complete snapshot of it and stores it in-memory. This snapshot includes the fully rendered page, the entire Document Object Model (DOM), and even the state of all JavaScript variables (the JS Heap). Think of it like pausing a video game; when you unpause, you're right back where you left off, instantly.
Insight: Bfcache vs. Standard HTTP Cache
It's crucial not to confuse bfcache with the browser's standard HTTP cache.
The HTTP cache only stores individual files (like images, CSS, JS). When you revisit a page, the browser still has
to re-assemble these pieces and execute the code to render the page.
Bfcache, in contrast, stores the already assembled, fully rendered page. This is why a bfcache restore is always
faster than even the most well-optimized navigation that relies on the HTTP cache.
The Real-World Impact
From Milliseconds to Revenue
Enabling bfcache isn't just a technical tweak; it's a strategic business decision with a direct and measurable impact on your bottom line. By transforming a common navigation pattern from a frustrating delay into an instant interaction, you fundamentally improve your store's performance across key business metrics.
A Game-Changer for Core Web Vitals
Google's Core Web Vitals (CWV) are designed to measure real-world user experience, and bfcache directly and dramatically improves them.
- Cumulative Layout Shift (CLS): For a page restored from bfcache, the CLS score is zero. Because the page is restored in its fully rendered state, there is no layout shift during the loading process. The Chrome Developer Relations Team noted that the introduction of bfcache caused "the biggest improvement in CLS that we saw in 2022".
- Largest Contentful Paint (LCP): The LCP for a bfcache restore is near-instantaneous. The largest element is already present in the in-memory snapshot, making the perceived load time incredibly fast. This has a massive positive impact on your field data, which clitures these real-user navigations.
The Direct Line to Increased Conversions and Revenue
Faster performance and better Core Web Vitals are not just vanity metrics; they are proven drivers of e-commerce success. Extensive industry research has quantified the connection:
- A study by Deloitte in collaboration with Google found that a mere 0.1-second improvement in site speed can boost conversion rates by 8.4% and increase average order value by 9.2%.
- Vodafone ran an A/B test showing that a 31% improvement in LCP led directly to an 8% increase in sales.
- Rakuten 24 found that improving their Core Web Vitals led to a 53.4% increase in revenue per visitor and a 33.1% increase in conversion rate.
By unlocking bfcache, you are directly applying these proven principles to up to 20% of your mobile users' navigations, creating a tangible lift in engagement and sales.
| Metric | Without JaJuMa Bfcache (Typical Magento) | With JaJuMa Bfcache (Instant Navigation) | Business Impact |
|---|---|---|---|
| LCP (Largest Contentful Paint) | 1.6s (Real Case Study Data) | ~0.8s (-50%) on bfcache restore | Better UX, Improved SEO Ranking |
| CLS (Cumulative Layout Shift) | 0.3 (Real Case Study Data) | 0.0 (-100%) on bfcache restore | Flawless Visual Stability, Perfect CWV Score |
| User Experience | Jarring full-page reloads, waiting time | Instant, seamless navigation | Reduced Frustration & Bounce Rate |
| Conversion Rate Lift | Baseline | +8-10% (Industry Average) | Increased Sales & Revenue |
| Server Load | Request for every back/forward click | Zero server requests on restore | Lower Hosting Costs, Higher Stability |
Calculate Your Potential ROI Curious about the specific revenue impact for your store? Use our magento page speed roi calculator to model the potential gains from improving your site's performance and Core Web Vitals.(Source: Jajuma)
The JaJuMa Architecture
Engineered for Magento & Hyvä
Our deep expertise in the Magento ecosystem allows us to address the platform's unique challenges with precision and elegance. The JaJuMa Back/Forward Cache extension is built on a foundation of smart, safe, and compatible code.
Intelligent and Safe by Default
Source: https://httparchive.org/
You don't need to be a performance expert to use our extension safely. We've built in the necessary safeguards based on our experience optimizing hundreds of Magento stores.
- Automatic Route Exclusion: The extension comes pre-configured to automatically exclude sensitive pages like the cart, checkout, and all customer account areas from being cached. This ensures that dynamic, private user data is never served from bfcache, guaranteeing data integrity and security without any manual configuration.
- Smart Mini-Cart Updates: One of the biggest challenges with bfcache in e-commerce is handling the mini-cart. Our extension solves this with an elegant configuration option: "Update Mini Cart only after User Interaction." When enabled, the page restores instantly, and the mini-cart content is only refreshed via a lightweight request after the user clicks, hovers, or scrolls. This provides the best of both worlds: a perfect LCP score and an accurate cart display.
Seamless Varnish Integration
For stores running high-performance hosting stacks, Varnish compatibility is non-negotiable. Our extension is fully compatible with Varnish. To ensure correct behavior and prevent Varnish from interfering with the headers that enable bfcache, simply update your vcl_deliver subroutine in your VCL file as follows.
sub vcl_deliver {
# JaJuMa Bfcache Compatibility
if (resp.http.Cache-Control ~ "public") {
set resp.http.Cache-Control = "no-cache, must-revalidate,
max-age=0";
} else {
set resp.http.Cache-Control = "no-store, no-cache, must-revalidate,
max-age=0";
}
# End JaJuMa Bfcache Compatibility
#... other vcl_deliver logic
}
Native Hyvä & Mage-OS Compatibility
This extension isn't merely "compatible" with modern Magento frontends; it was born from that ecosystem. As official Hyvä Gold & Technology Partners and pioneers who launched the very first live Mage-OS store, our development philosophy is aligned with the principles of performance and simplicity. The extension works flawlessly with Hyvä Themes out of the box, requiring no extra compatibility modules that could add unnecessary bloat or complexity.
Why JaJuMa is The Unrivaled Choice
for Performance Optimization
Choosing an extension is about more than just features; it's about trusting the expertise and vision of the developers behind it. When it comes to performance in the modern Magento ecosystem, JaJuMa stands alone.
- Technological Vanguard: We are not followers; we are innovators. We were the first to bring a bfcache solution to the Magento 2 market, the first extension provider to offer official Hyvä support, and the first agency in the world to launch a live store on Mage-OS. This track record demonstrates a relentless drive to push the platform forward and deliver cutting-edge solutions to our clients and the community.
- Architectural Elegance & Transparency: We believe in quality code and open collaboration. All our extensions are 100% open-source, developed to the highest Magento coding standards, and rigorously tested and verified on the official Adobe Commerce Marketplace. This means no encrypted code, no vendor lock-in, and complete transparency for your development team.
- Ecosystem Mastery: Our credentials speak for themselves. As Hyvä Gold & Technology Partners and Hyvä Core Contributors, we don't just use Hyvä—we help build and improve it. This extension is a direct result of our intimate, native understanding of the Hyvä architecture, ensuring perfect integration and optimal performance that other providers simply cannot match.
More Than an Extension
A Strategic Investment in Your Store's Future
The JaJuMa Back/Forward Cache extension is not an expense; it's a high-return investment in the core pillars of your e-commerce success. For a one-time cost, you are investing in:
- Increased Conversions & Revenue: By creating a faster, more fluid user experience, you directly impact your bottom line.
- Improved SEO & Organic Traffic: Achieving excellent Core Web Vitals is a key factor in modern SEO, and this extension provides one of the most significant boosts possible.
- Reduced Total Cost of Ownership (TCO): By offloading a significant portion of navigation requests from your server to the user's browser, you reduce server load, which can lead to lower hosting costs and improved stability during traffic peaks.
- A Future-Proof Architecture: Align your store with the performance best practices recommended by Google and embrace the speed and efficiency of the modern Magento ecosystem defined by Hyvä and Mage-OS.
Frequently Asked Questions
Changelog
Version: 1.0.0
- Initial Release
Version: 1.0.1
- Added: Option to close menu if open after restore from bfcache
- Added: Option to manually exclude URLs from being cached by bfcache
Version: 1.0.2
- Updated: Compatibility with Hyvä Themes 1.3.0
Version: 1.0.3
- Improvement: Better handling of stale content in bfcache
More Extensions
Maybe also interesting for you?
More valuable Extensions and Add-Ons for your Magento Store