Skip to content

Commit 7eaf04d

Browse files
committed
precache manifest.json
1 parent 5f2127e commit 7eaf04d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/sw.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@ precacheAndRoute(self.__WB_MANIFEST);
1212

1313
precacheAndRoute(ssgManifest);
1414

15+
// Precache manifest.json as ssgManifest couldn't catch it
16+
precacheAndRoute([
17+
{
18+
url: '/manifest.json',
19+
revision: '1', // manually update needed when content changed
20+
},
21+
]);
22+
1523
// Cache Google Fonts
1624
registerRoute(
1725
/https:\/\/fonts\.gstatic\.com/,

0 commit comments

Comments
 (0)