Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache bust import of .js files #12

Open
cb1kenobi opened this issue Mar 9, 2022 · 0 comments
Open

Cache bust import of .js files #12

cb1kenobi opened this issue Mar 9, 2022 · 0 comments

Comments

@cb1kenobi
Copy link
Contributor

The JSStore dynamically imports .js config files and the Layer class dynamically imports JOI schema .js files. The default import() function will internally cache modules, thus does not support reloading.

If we try to cache bust by inserting a timestamp in the file URI, Node will eventually crash if the module has been imported too many times. We need to wait and see if nodejs/node#49442 will solve the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant