diff --git a/src/service-worker.js b/src/service-worker.js index a3e1e1c..9d2ac9d 100644 --- a/src/service-worker.js +++ b/src/service-worker.js @@ -4,7 +4,7 @@ const ASSETS = `cache${timestamp}`; // `shell` is an array of all the files generated by webpack, // `files` is an array of everything in the `static` directory -const to_cache = shell.concat(assets); +const to_cache = shell.concat(ASSETS); const cached = new Set(to_cache); self.addEventListener('install', event => {