If you have many script files, but all of them contribute to the same functionality, then they are combined and compressed into one file.
When you serve your file, client clients know that they do not cache it (if it changes frequently), adding a query string to it (arbitrary or version of the file).
<script type="text/javascript" src="file.js?<%=DateTime.Now.Ticks.ToString() %>"></script> <script type="text/javascript" src="file.js?<%=Globals.JS_COMPILED_VERSION %>"></script>
You can process multiple JS files during build with a simple batch or batch file. It will concatenate files, then depending on whether you are in RELEASE or DEBUG, compress a large file using the JavaScript optimizer.
source share