fix: service worker exclusion problem with workaround

This commit is contained in:
Johannes Millan 2020-05-01 23:14:29 +02:00
parent e4676aacdd
commit 4f9fd08005
2 changed files with 11 additions and 14 deletions

View file

@ -36,23 +36,13 @@
}
],
"dataGroups": [
{
"name": "googleDrive",
"urls": [
"https://apis.google.com/**",
"https://content.googleapis.com/**"
],
"cacheConfig": {
"maxSize": 0,
"maxAge": "0u",
"strategy": "freshness"
}
},
{
"name": "issueProviderAndAssets",
"urls": [
"https://**",
"http://**"
"http://**",
"!//apis.google.com/**",
"!//content.googleapis.com/**"
],
"cacheConfig": {
"maxSize": 4000,

View file

@ -408,7 +408,14 @@ export class GoogleApiService {
const bodyArg = p.data ? [p.data] : [];
const allArgs = [...bodyArg, {
headers: new HttpHeaders(p.headers),
params: new HttpParams({fromObject: p.params}),
params: new HttpParams({
fromObject: {
...p.params,
// needed because negative globs are not working as they should
// @see https://github.com/angular/angular/issues/21191
'ngsw-bypass': true
}
}),
reportProgress: false,
observe: 'response',
responseType: paramsIN.responseType,