refresh page if back button from next page code example
Example: force page to reload on back button
if(performance.navigation.type == 2){
location.reload(true);
}
if(performance.navigation.type == 2){
location.reload(true);
}