Subscribe to RSS Feed

Firebug's Net panel offers an option called Show BFCache Responses that allows tracking also responses coming from BFCache. But what the heck is this cache for?

Read this post to understand how this cache is different from the standard browser cache and why Firebug supports it.

What is BFCache?

BFCache stands for back-forward cache. See the description taken from MDN:

Firefox uses in-memory caching for entire Web pages, including their JavaScript states, for a single browser session. Going backward and forward between visited pages requires no page loading and the JavaScript states are preserved. This feature, referred to by some as bfcache (for "Back-Forward Cache"), makes page navigation very fast. This caching state is preserved until the user closes the browser.

From the network perspective, this means that the server is not even asked whether to load the request from the cache since the round trip would slow things down. And this cache is all about fast page load.

BFCache in Firebug

If you want to track also FBCache responses in Firebug's Net panel you need to set the Show BFCache Responses on. It's off by default in Firebug 1.10 since BFCache responses are not involving HTTP traffic over the wire.

BFCache responses are visually different from other requests by using different background and a label in the Status column.

All the responses on the screenshot are coming from BFCache.

You can simply test this by using back-and-forward buttons while having Firebug's Net panel enabled.


Rss Commenti

12 Comments

  1. Does this relate at all to the HTML5 history API, which also interacts with the forward/back buttons?

    #1 Simon
  2. @Simon: Firefox implements HTML5 history API on top of BFCache.

    Honza

    #2 Honza
  3. Why do we need to see BFCache queries at all? It's good that it is turned off by default!

    #3 Igor Skomorokh
  4. I thought it was going to be some boring old post, but it really compensated for my time.

    #4 Longchamp le pliage
  5. huy

    #5 evsyukov mayor
  6. nahuy huyushki k huyam

    #6 evsyukov mayor
  7. mda... eto vam ne na zabore huy pisat'..kto tam na zabore 4to 4itat' budet?

    #7 evsyukov mayor
  8. Thanks for the useful information...

    #8 Sharan Rajendran
  9. Good job. Thanks. http://www.adelebags.com

    #9 Hermes Birkin
  10. thanks your good news

    #10 Moncler Outlet
  11. #11 karen nini
  12. equivalent Phrase: inexpensive ugg boots online, ugg UGG Store boots clearance sale, uggs on sale on the internet, uggs UGG Bailey Button Boots Jimmy Choo Uggs on sale low-cost, ugg boots clearance sale on the web, ugg sale, authentic ugg boots sale

    #12 UGG Bailey Button Boots

Sorry, the comment form is closed at this time.