diff --git a/public/sw.js b/public/sw.js index 9e1cbc2..b6915cb 100644 --- a/public/sw.js +++ b/public/sw.js @@ -54,7 +54,7 @@ self.addEventListener('fetch', function(event) { // Cache the response for certain pages .then(function(response) { - if(requestUrl.pathname === '/') { + if(requestUrl.pathname === '/' || requestUrl.pathname.startsWith('/node/')) { caches.open(cacheName).then(function(cache) { // Modify the response html so we know when it was cached