Super reload or cache deletion
I've been looking for a way to do it with Google Chrome for months, but I have no idea.
I'm looking for a way to super reload, how can I super reload?
By the way,
location.reload (true);
Well, it's not done at all.
(true) has no meaning at all.
window.location.href = window.location.href;
location.reload (); return false;
Is not done in the same way.
According to some people, the function itself has been abolished, but can anyone explain in an easy-to-understand manner why the following extensions allow super reloading? Chrome Hard refresh extension
Chrome Super Reloader extension
What is the reason why extensions can do it, but user scripts and bookmarklets can't?
Just in case, again, I'm looking for a way to do it with Google Chrome.
// I want to do it with the "F5" key.
(function() {
"use strict";
document.addEventListener ('keydown', function (e) {
if (e.keyCode === 116) {
window.location.href = window.location.href; // unexploded
location.reload (true); // unexploded
// unexploded
chrome.browsingData.removeCache ({});
chrome.tabs.reload (arrayOfTabs [0] .id);
setTimeout (function () {
location.reload ();
}, 2000);
}
});
})();
Supplement:
The difference between reload and super reload is You can also see the difference on the stackoverflow.com/ site.
When the code is no longer colored, the F5 key alone will not solve it,
Press the CTRL + F5 keys to cancel.