PWA: Fix caching (#1045)

This commit is contained in:
Alexander Zinchuk 2021-04-24 13:36:03 +03:00
parent 35bf7a5d54
commit 06b85c964e
2 changed files with 3 additions and 3 deletions

View File

@ -92,11 +92,11 @@
"webpack-cli": "^3.3.11",
"webpack-dev-server": "^3.11.0",
"webpack-merge": "^4.2.2",
"worker-loader": "^2.0.0"
"worker-loader": "^2.0.0",
"@types/jest": "^26.0.15"
},
"dependencies": {
"@cryptography/aes": "^0.1.1",
"@types/jest": "^26.0.15",
"async-mutex": "^0.1.4",
"big-integer": "painor/BigInteger.js",
"croppie": "^2.6.4",

View File

@ -36,7 +36,7 @@ self.addEventListener('fetch', (e: FetchEvent) => {
return respondForProgressive(e);
}
if (url.match(ASSET_CACHE_PATTERN)) {
if (url.startsWith('http') && url.match(ASSET_CACHE_PATTERN)) {
return respondWithCache(e);
}