Борьба с кэшем
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
"short_name": "PlaylistShare",
|
||||
"id": "./",
|
||||
"start_url": "./",
|
||||
"scope": "./",
|
||||
"handle_links": "preferred",
|
||||
"display": "standalone",
|
||||
"background_color": "#1a1a27",
|
||||
"theme_color": "#7e6fff",
|
||||
|
||||
@@ -17,8 +17,6 @@ const baseUrl = new URL(base, self.origin);
|
||||
const manifestUrlList = self.assetsManifest.assets.map(asset => new URL(asset.url, baseUrl).href);
|
||||
|
||||
async function onInstall(event) {
|
||||
console.info('Service worker: Install');
|
||||
|
||||
self.skipWaiting();
|
||||
|
||||
// Fetch and cache all matching items from the assets manifest
|
||||
@@ -30,8 +28,6 @@ async function onInstall(event) {
|
||||
}
|
||||
|
||||
async function onActivate(event) {
|
||||
console.info('Service worker: Activate');
|
||||
|
||||
await self.clients.claim();
|
||||
|
||||
// Delete unused caches
|
||||
|
||||
Reference in New Issue
Block a user