How do you make Firefox rerun javascript and reload the entire page when the user presses the back button? I was able to do this in all browsers except Firefox from the help of another SO question by adding this code:
history.navigationMode = 'compatible';
$("body").unload(function(){})
And also adding an iFrame... But this doesn't work in Firefox. Is there anything to do?
Add this to you file. Clean your cache first before testing.
to add headers in javascript please read this.
https://developer.mozilla.org/en-US/docs/Web/API/Headers/append
add this between your HEAD tags