update sw.js

This commit is contained in:
lei.jiang 2018-06-27 23:08:23 +08:00
parent 0d6a9fbb70
commit 70b926a374
1 changed files with 8 additions and 9 deletions

17
sw.js
View File

@ -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/*',