I\'ve got an MVC application and I\'m using the StyleBundle
class for rendering out CSS files like this:
bundles.Add(new StyleBundle(\"~/bundles
This library can add the cache-busting hash to your bundle files in debug mode, as well as a few other cache-busting things: https://github.com/kemmis/System.Web.Optimization.HashCache
Execute the ApplyHashCache() extension method on the BundlesCollection Instance after all bundles have been added to the collection.
BundleTable.Bundles.ApplyHashCache();
Create an instance of the HashCacheTransform and add it to the bundle instance you want to apply HashCache to.
var myBundle = new ScriptBundle("~/bundle_virtual_path").Include("~/scripts/jsfile.js");
myBundle.Transforms.Add(new HashCacheTransform());