Skip to content

Cache bust import of .js files #12

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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