---
title: "Measuring the back/forward cache with Application Metrics"
description: "Sentry's new opt-in bfcacheMetricsIntegration (JavaScript SDK v11) turns the browser's back/forward cache decisions into application metrics, closing a blind spot where cache hits leave no page-load telemetry."
url: "https://swe.quest/articles/measuring-the-back-forward-cache-with-application-metrics-3b96d5be7b308071"
canonical: "https://blog.sentry.io/bfcache-metrics/"
source: "Sentry"
published: "2026-09-24"
difficulty: "medium"
kind: "Announcement"
reading_minutes: 5
tags: ["web-performance","browsers","observability","javascript"]
---

# Measuring the back/forward cache with Application Metrics

A post on [Sentry](https://swe.quest/sources/sentry.md), published 2026-09-24, 5 min read, Announcement. Original: [https://blog.sentry.io/bfcache-metrics/](https://blog.sentry.io/bfcache-metrics/)

## Summary

Sentry's new opt-in bfcacheMetricsIntegration (JavaScript SDK v11) turns the browser's back/forward cache decisions into application metrics, closing a blind spot where cache hits leave no page-load telemetry. Built on the pageshow event and the notRestoredReasons API, it emits three metrics: a hit/miss counter per back/forward navigation, a Chromium-only counter of not-restored reasons with the frame that caused them (e.g. unload listeners, websockets, Cache-Control: no-store), and a distribution of fallback reload duration that measures what each miss cost the user. Because eligibility can regress without code changes, the recommendation is to track hit rate continuously and break misses down by route, release and browser.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Web performance](https://swe.quest/tags/web-performance.md) (Web & mobile)
- [Browsers](https://swe.quest/tags/browsers.md) (Web & mobile)
- [Observability](https://swe.quest/tags/observability.md) (Reliability & operations)
- [JavaScript](https://swe.quest/tags/javascript.md) (Languages)

## Prerequisites

- browser navigation lifecycle
- web performance metrics ([easy posts on Web performance](https://swe.quest/tags/web-performance.md?difficulty=easy))

## Keywords

bfcache, Sentry, bfcacheMetricsIntegration, notRestoredReasons, pageshow, Core Web Vitals, Chromium

## Related posts

- [Measuring soft navigation web vitals](https://swe.quest/articles/measuring-soft-navigation-web-vitals-5224b6d18d5f5088.md): Sentry · 2026-10-29 · Medium · 9 min read · Web performance, Observability, Frontend, Browsers
  Chrome (Chromium 151+) now reports web vitals for soft navigations, and Sentry's JavaScript SDK v11 attaches per-navigation LCP, CLS and INP to SPA \`navigation\` spans by default, using span streaming because vitals finalize after the span ends.
- [Application Metrics caught my broken size estimator](https://swe.quest/articles/application-metrics-caught-my-broken-size-estimator-b4c941e581ff6e70.md): Sentry · 2026-09-01 · Medium · 14 min read · Observability, Video & media, AI for coding, Frontend
  Instrumenting Cliparr Convert, an in-browser video converter built on MediaBunny/WebCodecs, with Sentry Application Metrics exposed an AI-written size estimator that scaled source size by resolution and produced files up to 83% larger than predicted.
- [MotionMark 1.2](https://swe.quest/articles/motionmark-1-2-d808e41277976708.md): WebKit · 2021-06-07 · Medium · 2 min read · Browsers, Performance engineering, Web performance
  MotionMark 1.2 is a small reliability-focused update to the browser graphics benchmark.
- [Sentry's Flutter SDK 10.0: Streaming Traces and More Accurate Crash-Free Rates](https://swe.quest/articles/sentry-s-flutter-sdk-10-0-streaming-traces-and-more-accurate-crash-free-rates-a06a0e8843447c28.md): Sentry · 2026-10-14 · Medium · 3 min read · Mobile, Observability
  Sentry's Flutter SDK 10.0 switches tracing to a streaming model that sends finished spans in batches instead of waiting for the whole transaction, with \`Sentry.startSpan\` for custom instrumentation and an opt-out via \`SentryTraceLifecycle.static\`.
- [The Importance of Using a Composite Metric to Measure Performance](https://swe.quest/articles/the-importance-of-using-a-composite-metric-to-measure-performance-2e062f69c5890b43.md): Indeed Engineering · 2024-01-31 · Medium · 12 min read · Web performance, Observability, Frontend
  Single client-side performance metrics such as Indeed's custom JSV Delay, domContentLoadEnd and LCP each miss parts of the user's perceived page load, and optimizing one often degrades another.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
