service-worker: Cache current posts

Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
This commit is contained in:
Harsh Shandilya 2019-09-13 19:43:07 +05:30
parent 86d460a8ef
commit 95031c8eeb
1 changed files with 5 additions and 1 deletions

View File

@ -21,7 +21,11 @@ const precacheResources = [
'/fonts/Inter-UI-Bold.woff2',
'/fonts/fa-solid-900.woff',
'/fonts/Inter-UI-BoldItalic.woff2',
'/fonts/fa-brands-400.woff2'
'/fonts/fa-brands-400.woff2',
'/posts/how-to-get-involved-in-open-source/index.html',
'/posts/i-m-gonna-blog/index.html',
'/posts/tools-for-effective-rust-development/index.html',
'/posts/understanding-and-resolving-selinux-denials-on-android/index.html',
];
self.addEventListener('install', event => {