title: Can gzip compression be selectively disabled in ASP.NET/IIS 7?
body: <p>I am using a long-lived asynchronous HTTP connection to send progress updates to a client via AJAX.  When compression is enabled, the updates are not received in discrete chunks (for obvious reasons).  Disabling compression (by adding a <code>&lt;urlCompression&gt;</code> element to <code>&lt;system.webServier&gt;</code>) <em>does</em> solve the problem:</p>
  
  <pre><code>&lt;urlCompression doStaticCompression="true" doDynamicCompression="false" /&gt;
  </code></pre>
  
  <p>However, this disables compression site-wide.  I would like to preserve compression for every other controller and/or action except for this one.  Is this possible?  Or am I going to have to create a new site/area with its own web.config?  Any suggestions welcome.</p>
  
  <p>P.S. the code that does the writing to the HTTP response is:</p>
  
  <pre><code>var response = HttpContext.Response;
  response.Write(s);
  response.Flush();
  </code></pre>