perf: avoid caching robots.txt in service worker (#820)

This commit is contained in:
Nolan Lawson 2018-12-16 09:35:02 -08:00 committed by GitHub
parent 77b84d44f4
commit beb4d6e119
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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