fix(dockerfile)
This commit is contained in:
@@ -67,7 +67,7 @@ if (!self.define) {
|
||||
});
|
||||
};
|
||||
}
|
||||
define(['./workbox-9be7f7ba'], (function (workbox) { 'use strict';
|
||||
define(['./workbox-52524643'], (function (workbox) { 'use strict';
|
||||
|
||||
importScripts("/sw-custom.js");
|
||||
self.skipWaiting();
|
||||
@@ -101,7 +101,13 @@ define(['./workbox-9be7f7ba'], (function (workbox) { 'use strict';
|
||||
statuses: [0, 200]
|
||||
})]
|
||||
}), 'GET');
|
||||
workbox.registerRoute(/^https?:\/\/.*\/api\/.*/i, new workbox.NetworkFirst({
|
||||
workbox.registerRoute(({
|
||||
url,
|
||||
request
|
||||
}) => {
|
||||
const urlString = url.href || url.toString();
|
||||
return /^https?:\/\/.*\/api\/.*/i.test(urlString) && request.method === "GET";
|
||||
}, new workbox.NetworkFirst({
|
||||
"cacheName": "api-cache",
|
||||
"networkTimeoutSeconds": 10,
|
||||
plugins: [new workbox.ExpirationPlugin({
|
||||
@@ -109,7 +115,7 @@ define(['./workbox-9be7f7ba'], (function (workbox) { 'use strict';
|
||||
maxAgeSeconds: 300
|
||||
})]
|
||||
}), 'GET');
|
||||
workbox.registerRoute(/^https?:\/\/.*\/uploads\/.*/i, new workbox.CacheFirst({
|
||||
workbox.registerRoute(/^https?:\/\/.*\/uploads\/.*/i, new workbox.StaleWhileRevalidate({
|
||||
"cacheName": "uploads-cache",
|
||||
plugins: [new workbox.ExpirationPlugin({
|
||||
maxEntries: 100,
|
||||
|
||||
Reference in New Issue
Block a user