mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-01-23 02:36:05 +00:00
fix: service worker exclusion problem with workaround
This commit is contained in:
parent
e4676aacdd
commit
4f9fd08005
2 changed files with 11 additions and 14 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue