diff --git a/ngsw-config.json b/ngsw-config.json index 4e9dd0a..57dac9f 100644 --- a/ngsw-config.json +++ b/ngsw-config.json @@ -14,17 +14,29 @@ "/*.js" ] } - }, { + }, + { "name": "assets", "installMode": "lazy", "updateMode": "prefetch", "resources": { "files": [ "/assets/**", - "/data/**", "/*.(eot|svg|cur|jpg|png|webp|gif|otf|ttf|woff|woff2|ani)" ] } } + ], + "dataGroups": [ + { + "urls": [ + "/data/**/*.(eot|svg|cur|jpg|png|webp|gif|otf|ttf|woff|woff2|ani)" + ], + "cacheConfig": { + "maxSize": 250, + "maxAge": "7d" + }, + "name": "userDefinedResources" + } ] } diff --git a/src/app/services/social/social.service.ts b/src/app/services/social/social.service.ts index d42310e..7fda50a 100644 --- a/src/app/services/social/social.service.ts +++ b/src/app/services/social/social.service.ts @@ -39,7 +39,7 @@ export class SocialService extends BaseService { */ createGroup(name: string) { const body = SocialService.buildGroupCreateBody(name); - return this.postGraphql(body); + return this.postGraphql(body, null, 0); } public removeFriend(id: number) {