title: IIS 7.5 Static Content Compression (not consistent )
body: <p>I have the following web.config:</p>
  
  <pre><code>&lt;urlCompression doStaticCompression="true" /&gt;
          &lt;httpCompression&gt;
              &lt;dynamicTypes&gt;
                  &lt;add mimeType="text/*" enabled="true" /&gt;
                  &lt;add mimeType="message/*" enabled="true" /&gt;
                  &lt;add mimeType="application/javascript" enabled="true" /&gt;
                  &lt;add mimeType="*/*" enabled="false" /&gt;
              &lt;/dynamicTypes&gt;
              &lt;staticTypes&gt;
                  &lt;add mimeType="text/*" enabled="true" /&gt;
                  &lt;add mimeType="message/*" enabled="true" /&gt;
                  &lt;add mimeType="application/javascript" enabled="true" /&gt;
                  &lt;add mimeType="*/*" enabled="false" /&gt;
              &lt;/staticTypes&gt;
          &lt;/httpCompression&gt;
  </code></pre>
  
  <p>May plan does not allow Dynamic compression</p>
  
  <p>The problem is, when I request css or js, IIS respond with GZIP and add vary:accept-encoding sometime and other time does not compress CSS nor JS, I can't find the pattern it is some kind of random.</p>
  
  <p>I always try CTRL F5, even when you access www.mysite.com css and js are randomly compressed or not.</p>
  
  <p>NB: hosted on NetworkSolution.</p>
  
  <p>What's wrong with my config or IIS.</p>
  
  <p>Thanks</p>