title: Intercept output from default handler with another HttpHandler
body: <p>I have set up an <code>HttpHandler</code> for <code>*css</code> to do some simple parsing:</p>
  
  <pre><code>    &lt;handlers&gt;
          &lt;add name="CssHandler" verb="*" path="*.css" 
             type="MyApp.CssProcessor,MyApp.Assembly"/&gt;
      &lt;/handlers&gt;
  </code></pre>
  
  <p>All was well until I added a resource that loads a css file dynamically, e.g. </p>
  
  <p><code>&lt;link rel="stylesheet" type="text/css" href="/loader.ashx/module.resource.css" &gt;</code></p>
  
  <p>To my surprise, things went horribly wrong. The custom http handler intercepts this, but since it's designed to just load files from the file system, it doesn't work. I realize that, technically, it matches a pattern <code>*.css</code> but that seems an odd behaviour, since the actual resource being requested from the web server is <code>*.ashx</code> and the css is only after the file path, as a parameter.</p>
  
  <p>Is it possible to make the filter for a handler only apply to the actual server resource name?</p>
  
  <p>Alternatively (and actually I'd like to know how to do this anyway) -- what I would really rather be doing is intercepting the output from the default css handler. That is, rather than having all my own code to actually load files from the file system in my CSS handler, it seems it would be far simpler to just take the response from the default handler and filter it. Which would have worked properly in this situation. </p>
  
  <p>Finally, in either case, I'd much rather be filtering on resource MIME type <code>text/css</code> rather than intercepting requests by name, since what I really want to do is filter any CSS (rather than anything that happens to be named "*.css"). Any pointers on how to do this?</p>