title: Using CDN in ASP.NET MVC bundles
body: <p>I read the article about <a href="http://www.asp.net/mvc/tutorials/mvc-4/bundling-and-minification" rel="noreferrer">bundling and monification</a>, specially about using CDN, but there are some things unclear to me. </p>
  
  <p>Having the example : </p>
  
  <pre><code>public static void RegisterBundles(BundleCollection bundles)
  {
      //bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
      //            "~/Scripts/jquery-{version}.js"));
  
      bundles.UseCdn = true;   //enable CDN support
  
      //add link to jquery on the CDN
      var jqueryCdnPath = 
          "http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.1.min.js";
  
      bundles.Add(new ScriptBundle("~/bundles/jquery",
                  jqueryCdnPath).Include(
                  "~/Scripts/jquery-{version}.js"));
  
      // Code removed for clarity.
  }
  </code></pre>
  
  <ol>
  <li><p>Is there a possibility to use the <code>{version}</code> format of CDN references, like for the "local" ones?</p></li>
  <li><p>What is the point of including in the bundles the already minified version of the script, like <em>jquery-1.7.1.min.js</em>? What if it does not exist? Should it not search if the <code>.min</code> file exist and/or generate it respectively?</p></li>
  </ol>