title: Why are my pages still not gzipped?
body: <p>With the help of YSlow I'm trying to tune my pages a bit.<br>
  I thought it would be little effort for big gain to have my pages compressed.
  After trying everything from <a href="http://beta.orcsweb.com/articles/iis_compression_6.0.aspx" rel="nofollow noreferrer">here</a>, <a href="http://www.codinghorror.com/blog/archives/000059.html" rel="nofollow noreferrer">here</a>, <a href="http://blowery.org/httpcompress/" rel="nofollow noreferrer">here</a> and <a href="https://stackoverflow.com/questions/649440/asp-net-mvc-compression-options-in-iis6">here</a> YSlow is still showing my pages are nog compressed.</p>
  
  <p>I'm using asp.net mvc 1.0 on IIS6.</p>
  
  <p>With the following rules in my global.asax I make sure that my static content is not handled by MVC.</p>
  
  <pre><code>routes.Clear();
  // Turns off the unnecessary file exists check 
  routes.RouteExistingFiles = true;
  // Ignore text, html, files.
  routes.IgnoreRoute("{file}.txt");
  routes.IgnoreRoute("{file}.htm");
  routes.IgnoreRoute("{file}.html");
  routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
  // Ignore the content directory which contains images, js, css &amp; html   
  routes.IgnoreRoute("Content/{*pathInfo}");
  //Exclude favicon (google toolbar request gif file as fav icon which is weird)   
  routes.IgnoreRoute("{*favicon}", new { favicon = @"(.*/)?favicon.([iI][cC][oO]|[gG][iI][fF])(/.*)?" });
  </code></pre>
  
  <p>This will make sure that my js and css files are statically accessible.</p>
  
  <p>These are the relevant snips of my metabase.xml</p>
  
  <pre><code>&lt;IIsCompressionScheme   Location ="/LM/W3SVC/Filters/Compression/deflate"
          HcCompressionDll="%windir%\system32\inetsrv\gzip.dll"
          HcCreateFlags="0"
          HcDoDynamicCompression="TRUE"
          HcDoOnDemandCompression="TRUE"
          HcDoStaticCompression="TRUE"
          HcDynamicCompressionLevel="9"
          HcFileExtensions="htm
              html
              txt
              css
              js
              mvc"
          HcOnDemandCompLevel="10"
          HcPriority="1"
          HcScriptFileExtensions="asp
              dll
              exe"
      &gt;
  &lt;/IIsCompressionScheme&gt;
  
  &lt;IIsCompressionScheme   Location ="/LM/W3SVC/Filters/Compression/gzip"
          HcCompressionDll="%windir%\system32\inetsrv\gzip.dll"
          HcCreateFlags="1"
          HcDoDynamicCompression="TRUE"
          HcDoOnDemandCompression="TRUE"
          HcDoStaticCompression="TRUE"
          HcDynamicCompressionLevel="9"
          HcFileExtensions="htm
              html
              txt
              css
              js
              mvc"
          HcOnDemandCompLevel="10"
          HcPriority="1"
          HcScriptFileExtensions="asp
              dll
              exe"
      &gt;
  &lt;/IIsCompressionScheme&gt;
  </code></pre>
  
  <p>(meta: not sure if I should be putting this on SO or on SF)</p>