// reload page from cache:
location.reload();
// reload page from server:
location.reload(true);
$(document).ready(function() {
$("button").click(function() {
location.reload(true);
});
});
$('#something').click(function() {
location.reload();
});
$(function () {
if (performance.navigation.type == 1) {
yourFunction();
}
});