Skip to content

Commit 16c7eb7

Browse files
committed
fix: match all app configs in service worker
1 parent 6939bce commit 16c7eb7

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/sw/sw.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,7 @@ registerRoute(
103103
registerRoute(
104104
new Route(
105105
({ url }) =>
106-
url.pathname === "/app-config.json" ||
107-
/^\/_services\/[^/]+\/app-config\.json$/.test(url.pathname),
106+
/\/app-config(\.json)?$/.test(url.pathname),
108107
new NetworkFirst({
109108
cacheName: "app-configs",
110109
fetchOptions: { cache: "no-store" },

0 commit comments

Comments
 (0)