how to empty cache and hard reload using javascript code example Example: javascript empty cache and hard reload window.history.forward(1);