diff --git a/gulpfile.js b/gulpfile.js index df40947a..6089b04a 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -190,7 +190,9 @@ function writeServiceWorkerFile (rootDir, handleFetch, callback) { staticFileGlobs: fileGlobs, stripPrefix: './' + rootDir + '/', importScripts: ['js/lib/push_worker.js'], - verbose: true + verbose: true, + maximumFileSizeToCacheInBytes: 3004152, // about 3MB, default is "2097152" 2MB, + navigateFallback: "index.html", } swPrecache.write(path.join(rootDir, 'service_worker.js'), config, callback) }