window.onbeforeunload = function () { // This fucntion does nothing. It won't spawn a confirmation dialog // But it will ensure that the page is not cached by the browser. }