Test of BF-cache (Back/forward cache)

Go to this page, click back and see if the random changes. If BF-cache works it should. Then modify the page with adding DOM, insert unload handler and unbeforeunload handler and if the random still does not change.

Random number:

Modify the DOM

Add onunload handler

Add onbeforeunload handler

Results

Safari: BF-cached works for all of these changes.

Chrome: BF-cache never works. It always reloads javascript.

Firefox: