mirror of
https://codeberg.org/ashley/poke.git
synced 2024-12-25 20:28:40 +01: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