cache busting for app config (#3783)

This commit is contained in:
Denys Vuika 2018-09-13 13:00:45 +01:00 committed by Eugenio Romano
parent 3ba72f00f8
commit 9322cf07f7

View File

@ -122,7 +122,9 @@ export class AppConfigService {
*/
load(): Promise<any> {
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);