Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Commit 7161087

Browse files
feat: sw cache ic0 img and data (#1413)
Signed-off-by: peterpeterparker <[email protected]>
1 parent e404beb commit 7161087

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

studio/src/sw.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ workbox.routing.registerRoute(
4848

4949
// Cache the images
5050
workbox.routing.registerRoute(
51-
/^(?!.*(?:unsplash|giphy|tenor|firebasestorage))(?=.*(?:png|jpg|jpeg|svg|webp|gif)).*/,
51+
/^(?!.*(?:unsplash|giphy|tenor|firebasestorage|ic0))(?=.*(?:png|jpg|jpeg|svg|webp|gif)).*/,
5252
new workbox.strategies.CacheFirst({
5353
cacheName: 'images',
5454
plugins: [
@@ -61,7 +61,7 @@ workbox.routing.registerRoute(
6161
);
6262

6363
workbox.routing.registerRoute(
64-
/^(?=.*(?:unsplash|giphy|tenor|firebasestorage))(?=.*(?:png|jpg|jpeg|svg|webp|gif)).*/,
64+
/^(?=.*(?:unsplash|giphy|tenor|firebasestorage|ic0))(?=.*(?:png|jpg|jpeg|svg|webp|gif)).*/,
6565
new workbox.strategies.StaleWhileRevalidate({
6666
cacheName: 'cors-images',
6767
plugins: [
@@ -78,7 +78,7 @@ workbox.routing.registerRoute(
7878

7979
// Cache the data
8080
workbox.routing.registerRoute(
81-
/^(?=.*(?:githubusercontent|firebasestorage))(?=.*(?:csv|json)).*/,
81+
/^(?=.*(?:githubusercontent|firebasestorage|ic0))(?=.*(?:csv|json)).*/,
8282
new workbox.strategies.StaleWhileRevalidate({
8383
cacheName: 'data-content',
8484
plugins: [

0 commit comments

Comments
 (0)