PWA: Fix caching (#1045)
This commit is contained in:
parent
35bf7a5d54
commit
06b85c964e
@ -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",
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user