title: IE scrambles script in IIS7 with static compression turned on
body: <p>I am having issues with javascript files not decompressing in IIS7 and stylesheets not loading properly.</p>
  
  <p>I can fix this issue by turning off Static compression in IIS but this can't be a permanent solution. The issue has suddenly started happening. We haven't changed the code.</p>
  
  <p>The web application is an asp.net web forms app in .net 4.
  static and dynamic compression was set in IIS.
  another web forms web application is still running fine with static compression set at the application level.</p>
  
  <p>the server was updated to .net 4.5 framework.</p>
  
  <p>Some of the stylesheets tags are set to runat server as I append a version number to force a reload of the css when its cached and a new version is released.</p>
  
  <p>This issue only happens in Internet Explorer.</p>
  
  <p>I am really stuck on this issue.</p>
  
  <p><strong>The Request</strong></p>
  
  <pre><code>Request GET        /webapp/JavaScript/jQuery/js/jquery-1.3.2.min.js HTTP/1.1
  Accept  text/html, application/xhtml+xml, */*
  Accept-Language x-en-GB-zscot
  User-Agent  Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0)
  UA-CPU  AMD64
  Accept-Encoding gzip, deflate
  Host    localhost
  Connection  Keep-Alive
  </code></pre>
  
  <p><strong>Response Headers</strong></p>
  
  <pre><code>Key Value
  Response    HTTP/1.1 200 OK
  Cache-Control   private
  Content-Type    application/x-javascript
  Content-Encoding    gzip,gzip
  Last-Modified   Wed, 10 Oct 2012 15:45:44 GMT
  Accept-Ranges   bytes
  ETag    "04f24efea6cd1:0"
  Vary    Accept-Encoding
  Server  Microsoft-IIS/7.5
  X-Compressed-By HttpCompress
  Date    Tue, 04 Dec 2012 11:07:13 GMT
  Content-Length  19788
  </code></pre>
  
  <p><strong>Part of the Response Body</strong></p>
  
  <pre><code>‹
  @õ¿‹ä½kwÚÈ¶(úýü
  ¬ÕÛ-…âá¤×&gt;g +ŒtÂÛI~a²®²M7F^€ã¤ýÛï|T•ª„p²ö8çŽ;ÆéÑ1R©Þ5k¾kVéÕÿÈ½Êýñé)šÏµÃ¯áéh&gt;y\æº“›yI_ŠoŠ¯1Ïýrùè—Jü³GñC  RñÃûøñû|rw¿Ì¹#/÷º\þG®ßÏrŸ£Åä3|x
  </code></pre>