From dbe2ce954fa576f66771ce199191780519da6357 Mon Sep 17 00:00:00 2001 From: Jovan Gerodetti Date: Fri, 8 Dec 2017 20:29:11 +0100 Subject: [PATCH] Fixes #1560 (#1562) --- gulpfile.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) }