fix: remove license files from service worker (#1875)

update-deps-of-deps
Nolan Lawson 2020-09-20 14:31:15 -07:00 zatwierdzone przez GitHub
rodzic 620dfafd09
commit 04b56f5dc5
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -41,7 +41,7 @@ const JSON_TEMPLATE = {
dest: 'client/$1'
},
{
src: '^/client/.*\\.(js|css|map|LICENSE)$',
src: '^/client/.*\\.(js|css|map|LICENSE|txt)$',
headers: {
'cache-control': 'public,max-age=31536000,immutable'
}

Wyświetl plik

@ -34,7 +34,7 @@ const assets = __assets__
const webpackAssets = __shell__
.filter(filename => !filename.endsWith('.map')) // don't bother with sourcemaps
.filter(filename => !filename.includes('tesseract-core.wasm')) // cache on-demand
.filter(filename => !filename.endsWith('.LICENSE')) // don't bother with license files
.filter(filename => !filename.includes('LICENSE')) // don't bother with license files
// `routes` is an array of `{ pattern: RegExp }` objects that
// match the pages in your src