I have a line like this in my phoenix project :
<script type="text/javascript"
src="<%= Routes.static_path(@conn, "/js/myScript.js") %>"></script>
When I run the project with MIX_ENV=“prod”, the generated html looks like this
<script type="text/javascript"
src="/js/myScript-e96060ad8bff62ca8d0fbb42c87d0cb4.js?vsn=d"></script>
I assume Phoenix copys the file /js/myScript.js to /js/myScript-e96060ad8bff62ca8d0fbb42c87d0cb4.js. What is the reason of that ?
Also my issue is that when I commit a new version of myScript.js, it is not taken into account : the same old file myScript-e96060ad8bff62ca8d0fbb42c87d0cb4.js is used instead of being updated. What is the best way to handle that ?






















