We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent edffbba commit 2e0b6b2Copy full SHA for 2e0b6b2
src/frontend/apps/impress/src/features/service-worker/service-worker.ts
@@ -14,6 +14,7 @@ import {
14
CacheFirst,
15
NetworkFirst,
16
NetworkFirstOptions,
17
+ NetworkOnly,
18
StrategyOptions,
19
} from 'workbox-strategies';
20
@@ -147,6 +148,15 @@ registerRoute(
147
148
'GET',
149
);
150
151
+/**
152
+ * Admin cache strategy
153
+ */
154
+registerRoute(
155
+ ({ url }) =>
156
+ url.href.includes(self.location.origin) && url.href.includes('/admin/'),
157
+ new NetworkOnly(),
158
+);
159
+
160
/**
161
* Cache stategy static files images (images / svg)
162
*/
0 commit comments