Rewrite asp.net response before it gets cached with dynamicCompressionBeforeCache
<p>My ASP.NET library installs a response filter to parse and alter the HTML output of pages. This is working until the following is enabled in web.config:</p>

<pre><code>&lt;system.webServer&gt;
    &lt;urlCompression doDynamicCompression="true" dynamicCompressionBeforeCache="true" /&gt;
&lt;/system.webServer&gt;
</code></pre>

<p>My response filter is still called, but is passed what seems to be compressed data, not the original HTML.</p>

<p>How can I ensure my rewriting occurs before the page is stored in the output cache?</p>

<p>Setting dynamicCompressionBeforeCache to false is not an option, since this library is designed to be used in other people's web applications who may have good reason to enable compression.</p>
