mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-17 00:14:39 -05:00
fix cache :3
This commit is contained in:
parent
d55e146e73
commit
7cb8ec404a
1 changed files with 15 additions and 1 deletions
|
@ -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>
|
||||
|
Loading…
Reference in a new issue