Unlock Instant Navigation and Perfect Core Web Vitals
Back/Forward Cache (bfcache)
for Magento 2

Back/Forward Cache (bfcache) Extension for Magento 2
Hot
Hyvä Compatible Themes Out-of-the-box
Mage-OS Compatible
Composer Installation Composer Installation?

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".

See All Highlights

License:


Magento Marketplace Approved by
  • One-Time Payment
  • Lifetime Access To Source Code
  • 1 Year Free Support
  • 1 Year Free Updates

Customer Feedback

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

awesomeicons6/solid/arrow-right-arrow-left

Use Back/Forward
Cache (bfcache)

Unlock instant page loads for back/forward navigations in your Magento 2 store.

awesomeicons6/solid/rocket

Boost Core
Web Vitals

Drastically improve real-user LCP and CLS scores, directly impacting your SEO performance.

awesomeicons6/solid/face-grin-stars

Superior
User Experience

Eliminate reload delays and create a seamless, fluid browsing journey that customers love.

awesomeicons6/solid/server

Reduced
Server Load

Cut down on unnecessary server requests, saving resources and improving stability.

awesomeicons6/brands/hyva-colored

Hyvä Theme
Compatible

Built with a "Hyvä-first" mindset for perfect, native integration. No compatibility module required.

See Hyvä Demo

awesomeicons6/brands/mage-os-filled

Mage-OS
Compatible

Fully tested and compatible with the future of community-driven Magento.

See Mage-OS Demo

Details

Back/Forward Cache (bfcache) for Magento 2
by JaJuMa In Detail.

Performance & Usability Boost for your Magento store

JaJuMa Back/Forward Cache Extension

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
awesomeicons6/regular/lightbulb
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

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.
Write Your Own Review
You're reviewing: Back/Forward Cache (bfcache)
loader
Loading...

check-circle You submitted your review for moderation.

Frequently Asked Questions

Back/Forward Cache Questions
Is this extension compatible with my theme?

Yes. The extension is designed to work seamlessly with standard Luma, third-party themes, and is built with native, out-of-the-box compatibility for all Hyvä Themes versions. No extra compatibility module is needed, ensuring a lean and efficient implementation.

Which Magento and PHP versions are supported?
    • Our extension is fully compatible with all Magento 2.4.x versions and their corresponding supported PHP versions. It is also tested and guaranteed to be 100% compatible with Mage-OS.
How does this differ from other caching like Varnish or Redis?

They serve different purposes and work together perfectly. Varnish and Redis are primarily server-side caches that speed up the initial page load. Bfcache is a browser-side (client-side) cache that makes subsequent back and forward navigations instantaneous. Our extension complements your existing server-side caching to create a comprehensively fast experience, and we even provide the necessary VCL configuration for Varnish users.

Will this cache sensitive customer data on pages like checkout or my account?

Absolutely not. The extension is intelligently designed to automatically exclude sensitive pages such as the cart, checkout, and all customer account areas from being eligible for bfcache. This ensures 100% data privacy and security by default.1

How do I know if the bfcache is working after installation?

You can easily verify its operation using the built-in Chrome DevTools bfcache tester. In your browser's developer tools, navigate to Application > Back-forward Cache and click the "Test back/forward cache" button. The results will confirm if the page was restored from cache successfully.

What is your support and update policy?

Your one-time purchase of €99 includes lifetime access to the 100% open-source code, 1 year of free, expert support from our development team, and 1 year of free updates to ensure ongoing compatibility and feature enhancements.

How does this compare to the Amasty or Extendware extensions?

As the original pioneers of bfcache for Magento, our extension is built on unparalleled expertise. It is a focused, architecturally elegant solution designed to do one thing perfectly, unlike bundled offerings. Most importantly, it's developed by Hyvä Gold Partners and Core Contributors, ensuring the deepest, most native, and most reliable integration with the modern Magento ecosystem.

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

Our Customers Are Excited!

Find all you need to know and more valuable insights about Hyvä and Magento.
Expertly curated by JaJuMa:

🚀 Launch the JaJuMa Hyväverse

Your central resource for everything Hyvä.

Explore the Magento Metropolis!

Your central resource for everything Magento.



Do you like this product?