1window.onpageshow = function(event) {
2 if (event.persisted) {
3 window.location.reload()
4 }
5};
6//If you are using jQuery then do:
7
8$(window).bind("pageshow", function(event) {
9 if (event.originalEvent.persisted) {
10 window.location.reload()
11 }
12});