I have a basic question regarding Firefox's "bfcache".
Should FF's back/forward behavior still work as described here:?
https://developer.mozilla.org/en/using_firefox_1.5_caching
(the page is 6 years old? - perhaps things have changed)
Recently I've been trying to figure out how to get the back-button to work when going back to a page where the dom has been modified (ie, the page should be as the user left it). Specifically a form where fields have been revealed/modified based on values of other fields.. common stuff.
My searches lead me to bfcache and the understanding that it should "just work" (assuming no "no-store" / "no-cache" headers... or unload handlers are used, etc). The thing is, I can't find a page/site where bfcache works as described. It seems the page is always redrawn and the onload event is always fired.
I've created a most basic page to test bfcache (no external javascript, images, stylesheets)
http://www.bradkent.com/test/bfcache.html
The page captures 3 events: load, pageshow, & focus
each event handler appends a "debug" div to the body
When using the back/forward button to return to the page: page is always redrawn & onload is always fired...the page is not as it was left... further, pageshow's persist property is always fals.
It doesn't matter whether I load the page via http:// or file:// (I assume that would rule out any caching headers issue)
I must be doing something wrong??
I'm using Firefox 8