fix(dockerfile)
Some checks failed
Deploy to Development / build-and-deploy (push) Has been cancelled
Deploy to Production / build-and-deploy (push) Successful in 33s

This commit is contained in:
EvanChal
2026-01-28 20:47:34 +01:00
parent 97ae75c9bf
commit d68af8d5a1
19 changed files with 4783 additions and 7 deletions

View File

@@ -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,

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long