I have the following to refresh my page when clicked on href.
<a href="javascript:history.go(0)">Click to refresh the page</a>
I have this
<meta http-equiv="no-cache">
in the head tag. Even then I am getting a cached copy. How can I avoid loading cached copy?
instead of
javascript:history.go(0);
you may use
javascript:window.location.reload();
Try this
window.location.href=window.location.href
<a onclick="window.location.href=this">test</a>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With