I know the bundling optimizer defeats the cache by adding this: "?v={some_long_code}" to the path and changing that code whenever any script in the bundle changes. Thats well and fine for production but I also need the cache defeated upon code changes when
in development (when the bundeling is turned off). In this case the <script> tags are rendered normaly (unbundled) so I need to add my own version to these. Before implementing bundeling I use to do this:
<script src="Scripts/code.js?v=123"></script>
However this is not possible in the bundle definition:
bundles.Add(New ScriptBundle("~/bundles/code").Include("~/Scripts/code.js?v=123"))
If you do the above, it outputs nothing. I know its possible to do the following:
bundles.Add(New ScriptBundle("~/bundles/code").Include("~/Scripts/code-12 ...
Go to the complete details ...