Angular runs with stale configuration when SSR is bypassed #3992
Labels
affects: main
Issue impacts "main" (latest release).
affects: 7.x
Issue impacts 7.x releases
affects: 8.x
Issue impacts 8.x releases
bug
claimed: Atmire
Atmire team is working on this issue & will contribute back
configuration
performance / caching
Related to performance, caching or embedded objects
Describe the bug
The production server for DSpace Angular generates a
config.json
file every time it starts up, based on:DSPACE_...
Environment variablesThis JSON file is the only source of configuration when SSR is turned off, but it is also cached by the browser. Configuration changes cannot be reliably pushed in this case: users can either
To Reproduce
Steps to reproduce the behavior:
config.json
config.json
is server from the cache, and doesn't include the changeconfig.json
will be fetched again, including the changeProposed solution
We want to introduce a cache busting mechanism for files that our Angular server generates dynamically, outside of the build.
This would allow us to invalidate coniguration when it changes, in the same way as we already do for compiled JS and CSS.
The text was updated successfully, but these errors were encountered: