title: Specifying precompressed (gzip) vs non-precompressed content in IIS7 by filetype
body: <p>I am trying to essentially setup an IIS7 intranet CDN for a series of nested folders containing some precompressed (gzip) css content but also image files (obviously noncompressed).  </p>
  
  <p>The folder structure is essentially something like this:</p>
  
  <pre><code>Skins
  Skins\SkinName1\*.css
  Skins\SkinName1\Control1\*.png
  Skins\SkinName1\Control2\*.png
  Skins\SkinName1\lots more controls..\*.png
  Skins\SkinName2\...
  Skins\lots more skins...\...
  </code></pre>
  
  <p>..you get the idea..</p>
  
  <p>The css is all pre-compressed (gzip'ed) so I need to set a Content-Encoding header of 'gzip' on them..  but I obviously can't set the same header on the image files.</p>
  
  <p>I know I could set the Content-Encoding gzip folder at the root, and then not-inherit it on all the Control (image) folders.. but there's a ton of image folders to have to go through.</p>
  
  <p>Is there any way to set this by file type or something that would keep from having to go through each folder individually?</p>
  
  <p>*Unfortunately I don't have any control over the folder structure.</p>
  
  <p>Thanks-</p>