Skip to content

Commit 73ce03b

Browse files
committedApr 24, 2021
removing json files from cache
1 parent 95d3081 commit 73ce03b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎service-worker.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ workbox.routing.registerRoute(
2121

2222
// use `cacheFirst` strategy for images
2323
workbox.routing.registerRoute(
24-
/assets\/(img|icons|svg|json)/,
24+
/assets\/(img|icons|svg)/,
2525
workbox.strategies.cacheFirst()
2626
);
2727

2828
// use `cacheFirst` strategy for images
2929
workbox.routing.registerRoute(
30-
/\.(?:js|css|png|gif|jpg|svg|json)$/,
30+
/\.(?:js|css|png|gif|jpg|svg)$/,
3131
workbox.strategies.cacheFirst()
3232
);

0 commit comments

Comments
 (0)