<p></p>
<p dir="auto">I think this is a matter of the code imported from the duktape project for having  jsmodule support, respectively <code class="notranslate">src/modules/app_jsdt/duk_module_node.{c,h}</code>. I see function names referring to cache, so the js modules might be cached and used from there. If it is something that has to be done there, it has to be addressed to the duktape project, because Kamailio just reuses the code as recommended by duktape project, embedding the code, but there is no plan to diverge our copy from the original one, we sycn from time to time with the upstream version.</p>
<p dir="auto">Maybe <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/xantek-imc/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/xantek-imc">@xantek-imc</a> can comment more.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/3145#issuecomment-1156076594">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZOYYEWM7DWMAFYAITDVPF7DFANCNFSM5YYL4JPQ">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/ABO7UZMXWJARRTL5F3FNNYDVPF7DFA5CNFSM5YYL4JP2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOITUFIMQ.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><kamailio/kamailio/issues/3145/1156076594</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/3145#issuecomment-1156076594",
"url": "https://github.com/kamailio/kamailio/issues/3145#issuecomment-1156076594",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>