Suppose there is such a script:
<script type="text/javascript" src="theremyjsscript/myjs.js"></script>
How can src add a date to this so that src looks like this: "http://theremyjsscript/myjs.js?_dc=" + (new Date().getTime())
Maybe somehow it can be done programmatically?
The idea is that every time a script is launched with a new parameter, a new script is launched, and not a script from the cache.
To do this, they do the following type: <script src="myfile.js?version=1.0.0"></script>
, and then they change the version and, accordingly, a fresh script will open, but I will not have this opportunity, because I do not have a site, but an application that is installed on a smart TV, and there applications are laid out for months ...