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 1f2879b commit e2a9d1fCopy full SHA for e2a9d1f
src/frontend/apps/impress/src/features/service-worker/service-worker.ts
@@ -235,6 +235,20 @@ registerRoute(
235
}),
236
);
237
238
+/**
239
+ * External urls post cache strategy
240
+ * It is interesting to intercept the request
241
+ * to have a fine grain control about if the user is
242
+ * online or offline
243
+ */
244
+registerRoute(
245
+ ({ url }) => !url.href.includes(self.location.origin) && !isApiUrl(url.href),
246
+ new NetworkOnly({
247
+ plugins: [new OfflinePlugin()],
248
+ }),
249
+ 'POST',
250
+);
251
+
252
/**
253
* Cache all other files
254
*/
0 commit comments