title: GZip system.web.optimization bundles
body: <p>I am using the new System.Web.Optimization and have created a bundle like this:</p>
  
  <pre><code>bundles.Add(New ScriptBundle("~/bundles/BaseJS").Include(
                  "~/Resources/Core/Javascripts/jquery-1.7.1.js",
                  "~/Resources/Core/Javascripts/jquery-ui-1.8.16.js",
                  "~/Resources/Core/Javascripts/jquery.validate.js",
                  "~/Resources/Core/Javascripts/jquery.validate.unobtrusive.js",
                  "~/Resources/Core/Javascripts/jquery.unobtrusive-ajax.js"))
  </code></pre>
  
  <p>and in my view I have added this</p>
  
  <pre><code>@System.Web.Optimization.Scripts.Render("~/bundles/BaseJS")
  </code></pre>
  
  <p>In fiddler the URL comes across with an expires header of 1 year in the future and a content type of text/javascript</p>
  
  <p>In the web.config I have some code for gzip that is working on static JS files but it doesn't seem to on the minified bundles.</p>
  
  <pre><code>&lt;staticContent&gt;
    &lt;clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="365.00:00:00"/&gt;
    &lt;remove fileExtension=".js"/&gt;
    &lt;mimeMap fileExtension=".js" mimeType="text/javascript"/&gt;
  &lt;/staticContent&gt;
  &lt;urlCompression doDynamicCompression="true" doStaticCompression="true" dynamicCompressionBeforeCache="true"/&gt;
  &lt;httpCompression directory="%SystemDrive%\inetpub\temp\IIS Temporary Compressed Files"&gt;
    &lt;scheme name="gzip" dll="%Windir%\system32\inetsrv\gzip.dll"/&gt;
    &lt;dynamicTypes&gt;
      &lt;add mimeType="text/*" enabled="true"/&gt;
      &lt;add mimeType="text/javascript" enabled="true"/&gt;
    &lt;/dynamicTypes&gt;
    &lt;staticTypes&gt;
      &lt;add mimeType="text/*" enabled="true"/&gt;
      &lt;add mimeType="text/javascript" enabled="true"/&gt;
    &lt;/staticTypes&gt;
  &lt;/httpCompression&gt;
  </code></pre>
  
  <p>Is there a way to make the render bundle gzip the content?</p>