From 4d5d780d8c91f1aea93c87fe387ea7f1015615ca Mon Sep 17 00:00:00 2001 From: macko911 Date: Mon, 4 Nov 2019 14:26:49 +0100 Subject: [PATCH] fix(gatsby): clear cache before refresh (#19159) --- packages/gatsby/cache-dir/navigation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/gatsby/cache-dir/navigation.js b/packages/gatsby/cache-dir/navigation.js index 55451cd5319c0..cee751a344ddb 100644 --- a/packages/gatsby/cache-dir/navigation.js +++ b/packages/gatsby/cache-dir/navigation.js @@ -106,7 +106,7 @@ const navigate = (to, options = {}) => { navigator.serviceWorker.controller.state === `activated` ) { navigator.serviceWorker.controller.postMessage({ - gatsbyApi: `resetWhitelist`, + gatsbyApi: `clearPathResources`, }) }