From 033b50472bd4172ce562b9efb818d093458861c5 Mon Sep 17 00:00:00 2001 From: gyarasu Date: Mon, 10 Dec 2018 17:14:32 +0900 Subject: [PATCH] feat(workbox): change the order of default runtimeCache (#106) --- packages/workbox/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/workbox/index.js b/packages/workbox/index.js index 43eb12e2..0344ffc2 100755 --- a/packages/workbox/index.js +++ b/packages/workbox/index.js @@ -147,7 +147,7 @@ function addTemplates (options) { routingExtensions: options.routingExtensions, config: options.config, importScripts: [options.wbDst].concat(options.importScripts || []), - runtimeCaching: [].concat(options._runtimeCaching, options.runtimeCaching).map(i => (Object.assign({}, i, { + runtimeCaching: [].concat(options.runtimeCaching, options._runtimeCaching).map(i => (Object.assign({}, i, { urlPattern: i.urlPattern, handler: i.handler || 'networkFirst', method: i.method || 'GET'