I know I was a little late to the game, but I found a workaround. I am using the Frison B Alexander code here .
The problem is that after overwriting a request for StyleBundles or ScriptBundles, the default caching behavior for one year is reset to no-cache. This is accomplished by regenerating exactly the same sequence of packet requests that MVC uses when specifying each CDNPath package.
Here's how to do it using the MVC web application template. Here's the BundleConfig class:
public class BundleConfig { public static void RegisterBundles(BundleCollection bundles) { //we have to go ahead and add our Bundles as if there is no CDN involved. //this is because the bundle has to already exist in the BundleCollection //in order to get the hash that the MVC framework will generate for the //querystring. Bundle jsBundle = new ScriptBundle("~/scripts/js3").Include( "~/Scripts/jquery-{version}.js", "~/Scripts/modernizr-*", "~/Scripts/bootstrap.js", "~/Scripts/respond.js"); bundles.Add(jsBundle); Bundle cssBundle = new StyleBundle("~/content/css3").Include( "~/Content/bootstrap.css", "~/Content/site.css"); bundles.Add(cssBundle);
source share