I found some article in stack overflow about browser bfcache, I test in safari Version 7.0.5 (9537.77.4), when I click history back the js won't execute, How to use window.onunload or other method, handle js if not execute due to cache, make it execute?
window.onunload = function(){
alert('window.unload');
};
$(document).ready(function(){
// js app
});