added command line command to clear sw cache

This commit is contained in:
Miodec 2022-01-03 14:11:16 +01:00
parent 5ab1233457
commit 22ac48a691

View file

@ -3034,6 +3034,15 @@ export let defaultCommands = {
visible: false,
subgroup: commandsMonkeyPowerLevel,
},
{
id: "clearSwCache",
display: "Clear SW cache",
icon: "fa-cog",
exec: async () => {
await caches.delete("sw-cache");
window.location.reload(true);
},
},
],
};