From beb4d6e1199a09fad7b3247466fe3a43b5875298 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Sun, 16 Dec 2018 09:35:02 -0800 Subject: [PATCH] perf: avoid caching robots.txt in service worker (#820) --- src/service-worker.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/service-worker.js b/src/service-worker.js index 4cf9da6..0f041b4 100644 --- a/src/service-worker.js +++ b/src/service-worker.js @@ -18,6 +18,7 @@ const assets = __assets__ .map(file => file.startsWith('/') ? file : `/${file}`) .filter(filename => !filename.startsWith('/apple-icon')) .filter(filename => !filename.endsWith('.map')) + .filter(filename => filename !== '/robots.txt') // `shell` is an array of all the files generated by webpack // also contains '/index.html' for some reason