Skip to content

Commit

Permalink
feat: support language file hash to bypass browser cache upon applica…
Browse files Browse the repository at this point in the history
…tion upgrade
  • Loading branch information
eransakal committed Sep 17, 2017
1 parent c656352 commit 3b102dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/app-config/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export const environment = {
"shell": {
"languageHash": "12", /* this value is set manually at the moment and should be replaced with the published app version */
"defaultRoute": "/content/entries",
"loginRoute" : "/login",
"errorRoute" : "/error",
Expand Down
2 changes: 1 addition & 1 deletion src/shared/kmc-shell/auth/app-bootstrap.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export class AppBootstrap implements CanActivate {
this._bootstrapConfig = appBootstrapConfig;

// init localization, wait for localization to load before continuing

this.appLocalization.setFilesHash(environment.shell.languageHash);
const language = this.getCurrentLanguage();
this.appLocalization.load(language,'en').subscribe(
() => {
Expand Down

0 comments on commit 3b102dd

Please sign in to comment.