Skip to content

Cache bust import of .js files #12

@cb1kenobi

Description

@cb1kenobi

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions