Skip to content

Caching of the .json config file #106

@cphorton

Description

@cphorton

I had a situation where my config file was being cached locally in the browser and causing issues across multiple changes / releases.

I came up with the following solution and just wanted to clarify if this is the best way to combat the issue.

.plugin(PLATFORM.moduleName('aurelia-configuration'), config =>{
        config.setConfig('config.json?v=' + Guid.raw());
      })

As you can see I am using the Guid library to get a unique reference.

If this is indeed an appropriate way to deal with the issue, perhaps it is something that could be built into the plugin itself.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions