make service worker serve cache first
This commit is contained in:
Vendored
+1
@@ -21,6 +21,7 @@ async function registerServiceWorker() {
|
||||
setTimeout(() => window.location.reload(), 500);
|
||||
} else if (registration.active) {
|
||||
console.log("Service worker active");
|
||||
registration.update();
|
||||
}
|
||||
} catch (error) {
|
||||
console.error(`Could not install service worker: ${error}`);
|
||||
|
||||
Reference in New Issue
Block a user