Is there a way to have the button do a hard refresh rather than a normal one? Usually users would hold ctrl and press the refresh page in chrome.
I have the following script:
const reloadtButton = document.querySelector("#reload");
// Reload everything:
function reload() {
reload = location.reload();
}
// Event listeners for reload
reloadButton.addEventListener("click", reload, false);
html:
<button onClick="window.location.reload();">Refresh Page</button>