Skip to content

Commit d7e9e78

Browse files
committed
chore: update denylist and runtime caching
1 parent ba1f96c commit d7e9e78

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

app/service-worker.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ if (import.meta.env.PROD) {
4747
denylist = [
4848
// search page
4949
/^\/search$/,
50+
/^\/~/,
51+
/^\/org\//,
5052
// api calls
5153
/^\/api\//,
5254
/^\/oauth\//,
@@ -61,7 +63,11 @@ if (import.meta.env.PROD) {
6163

6264
registerRoute(
6365
({ sameOrigin, url }) =>
64-
sameOrigin && (url.pathname.startsWith('/package/') || url.pathname.startsWith('/api/')),
66+
sameOrigin &&
67+
(url.pathname.startsWith('/package/') ||
68+
url.pathname.startsWith('/org/') ||
69+
url.pathname.startsWith('/~') ||
70+
url.pathname.startsWith('/api/')),
6571
new NetworkFirst({
6672
cacheName: cacheNames[0],
6773
plugins: [

0 commit comments

Comments
 (0)