mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-26 17:24:56 +00:00
cache busting for app config (#3783)
This commit is contained in:
parent
3ba72f00f8
commit
9322cf07f7
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user