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