fix cache :3

This commit is contained in:
Ashley 2023-12-30 15:22:25 +00:00
parent d55e146e73
commit 7cb8ec404a

View file

@ -467,6 +467,20 @@ Web
<script src="/css/custom-css.js"> </script>
<script> if ('serviceWorker' in navigator) {
navigator.serviceWorker.getRegistrations().then(function(registrations) {
for (let registration of registrations) {
registration.unregister();
}
});
if ('caches' in window) {
caches.keys().then(function(cacheNames) {
cacheNames.forEach(function(cacheName) {
caches.delete(cacheName);
});
});
}
}</script>
</body>