From 70b926a37469cfdefc9ced937dee4fecb6f03055 Mon Sep 17 00:00:00 2001 From: "lei.jiang" Date: Wed, 27 Jun 2018 23:08:23 +0800 Subject: [PATCH] update sw.js --- sw.js | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/sw.js b/sw.js index 318ae213..f4d1e232 100644 --- a/sw.js +++ b/sw.js @@ -3,18 +3,17 @@ const version = '2.0.0' const CACHE = version + '::PWAsite' -const offlineURL = '/offline/' const installFilesEssential = [ '/', - './static/manifest.json', - './static/css/*', - './static/img/*', - './static/js/*', - './static/fonts/*', - './static/tinymce4.7.5/*', - './static/js/*', + './manifest.json', + './static/css/', + './static/img/', + './static/js/', + './static/fonts/', + './static/tinymce4.7.5/', + './static/js/', './logo.png' -].concat(offlineURL) +] // const installFilesEssential = [ // '/', // './static/tinymce4.7.5/*',