diff --git a/server/controllers/BlockchainKernel.ts b/server/controllers/BlockchainKernel.ts index 0f0028a..f1225e4 100644 --- a/server/controllers/BlockchainKernel.ts +++ b/server/controllers/BlockchainKernel.ts @@ -506,7 +506,7 @@ export class BlockchainKernelController { next: NextFunction, ) => { try { - http.get('http://5.9.174.122:3413/v1/peers/connected', (resp) => { + http.get('http://116.203.152.58:3413/v1/peers/connected', (resp) => { // console.log('resp resp respresp',resp); let data = ''; diff --git a/src/app/app.component.ts b/src/app/app.component.ts index ac5c5a7..55b308e 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -9,5 +9,19 @@ import { TransServiceService } from './shared/services/trans-service.service'; }) export class AppComponent { title = 'explorer2-epic'; - constructor(private _cookieService: CookieService,public translate: TransServiceService){} + constructor(private _cookieService: CookieService,public translate: TransServiceService){ + console.log('cccc',caches.keys()); +caches.keys().then((keys) => { + keys.forEach((eachCacheName) => { + let regExPat = /^(ngsw).*api.*/; + // if (regExPat.test(eachCacheName)) { + caches.open(eachCacheName).then((eachCache) => { + eachCache.keys().then((requests) => { + requests.forEach((eachRequest) => { eachCache.delete(eachRequest); }); + }); + }); + // } + }); +}); +} }