If I understand correctly, you are creating virtual directories to ensure you are serving up the latest javascript files?
You should be aware that by appending a new querystring variable to each new version of your script reference, you will perform a cache-bust and the browser will download the latest version:
<script type="text/javascript" src="myscript.js?v=1"></script>
If you update the querystring variable, myscript.js
will be re-downloaded again irrespective of what is in the cache:
<script type="text/javascript" src="myscript.js?v=2"></script>
Depending on the version of ASP.Net you are using, you get this for free when you leverage bundles. Bundle up all your CSS and Scripts, set your site to release mode, and ASP.Net will append cache-busting querystrings to your references.