From 9322cf07f7e6667273fc4b41ac6bcd3f0cb96c4c Mon Sep 17 00:00:00 2001 From: Denys Vuika Date: Thu, 13 Sep 2018 13:00:45 +0100 Subject: [PATCH] cache busting for app config (#3783) --- lib/core/app-config/app-config.service.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/core/app-config/app-config.service.ts b/lib/core/app-config/app-config.service.ts index 9b8f2c6cc5..a256c2cef5 100644 --- a/lib/core/app-config/app-config.service.ts +++ b/lib/core/app-config/app-config.service.ts @@ -122,7 +122,9 @@ export class AppConfigService { */ load(): Promise { return new Promise(resolve => { - this.http.get('app.config.json').subscribe( + const configUrl = `app.config.json?v=${Date.now()}`; + + this.http.get(configUrl).subscribe( (data: any) => { this.config = Object.assign({}, this.config, data || {}); this.onLoadSubject.next(this.config);