fix bug design

This commit is contained in:
hamid zarghami
2025-03-03 11:11:16 +03:30
parent d55cc208b2
commit f6fa0890e4
6 changed files with 980 additions and 82 deletions
+8 -4
View File
@@ -67,7 +67,7 @@ if (!self.define) {
});
};
}
define(['./workbox-706c6701'], (function (workbox) { 'use strict';
define(['./workbox-e7681877'], (function (workbox) { 'use strict';
self.skipWaiting();
workbox.clientsClaim();
@@ -82,15 +82,19 @@ define(['./workbox-706c6701'], (function (workbox) { 'use strict';
"revision": "3ca0b8505b4bec776b69afdba2768812"
}, {
"url": "index.html",
"revision": "0.fjjapfr8ogo"
"revision": "0.2fod7b7jhdg"
}], {});
workbox.cleanupOutdatedCaches();
workbox.registerRoute(new workbox.NavigationRoute(workbox.createHandlerBoundToURL("index.html"), {
allowlist: [/^\/$/]
}));
workbox.registerRoute(/^https:\/\/api\.example\.com\//, new workbox.NetworkFirst({
workbox.registerRoute(/^https:\/\/console\.danakcorp\.com\//, new workbox.NetworkFirst({
"cacheName": "api-cache",
plugins: []
"networkTimeoutSeconds": 10,
plugins: [new workbox.ExpirationPlugin({
maxEntries: 50,
maxAgeSeconds: 86400
})]
}), 'GET');
}));