Note that there are some explanatory texts on larger screens.

plurals
  1. POGZip Compression On IIS 7.5 is not working
    text
    copied!<p>I am trying to support GZip compression for my static files under IIS (which should be enabled by default but not) but not working so far. Here is the the section under <code>&lt;system.webServer&gt;</code> node inside the web.config file of the web app;</p> <pre><code>&lt;httpCompression directory="%SystemDrive%\inetpub\temp\IIS Temporary Compressed Files"&gt; &lt;scheme name="gzip" dll="%Windir%\system32\inetsrv\gzip.dll" staticCompressionLevel="9" /&gt; &lt;dynamicTypes&gt; &lt;add mimeType="text/*" enabled="true" /&gt; &lt;add mimeType="message/*" enabled="true" /&gt; &lt;add mimeType="application/x-javascript" enabled="true" /&gt; &lt;add mimeType="application/json" 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/x-javascript" enabled="true" /&gt; &lt;add mimeType="application/atom+xml" enabled="true" /&gt; &lt;add mimeType="application/xaml+xml" enabled="true" /&gt; &lt;add mimeType="*/*" enabled="false" /&gt; &lt;/staticTypes&gt; &lt;/httpCompression&gt; &lt;urlCompression doStaticCompression="true" /&gt; </code></pre> <p>I tried it with Google Chrome. Here are the Request Headers;</p> <blockquote> <p>Accept:text/html,application/xhtml+xml,application/xml;q=0.9,<em>/</em>;q=0.8</p> <p>Accept-Charset:ISO-8859-1,utf-8;q=0.7,*;q=0.3</p> <p>Accept-Encoding:gzip,deflate,sdch</p> <p>Accept-Language:en-US,en;q=0.8</p> <p>Cache-Control:no-cache</p> <p>Connection:keep-alive</p> <p>Host:my-website-url</p> <p>Pragma:no-cache</p> <p>User-Agent:Mozilla/5.0 (Windows NT 6.0) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.122 Safari/534.30</p> </blockquote> <p>These are the Response Headers;</p> <blockquote> <p>Accept-Ranges:bytes</p> <p>Content-Length:232651</p> <p>Content-Type:application/x-javascript</p> <p>Date:Thu, 04 Aug 2011 08:58:19 GMT</p> <p>ETag:"a69135734a50cc1:0"</p> <p>Last-Modified:Mon, 01 Aug 2011 12:56:37 GMT</p> <p>Server:Microsoft-IIS/7.5</p> <p>X-Powered-By:ASP.NET</p> </blockquote> <p>I check the applicationHost.config file and found some nodes like below;</p> <pre><code>---- &lt;section name="httpCompression" allowDefinition="AppHostOnly" overrideModeDefault="Deny" /&gt; ---- &lt;section name="urlCompression" overrideModeDefault="Allow" /&gt; ---- &lt;httpCompression directory="%SystemDrive%\inetpub\temp\IIS Temporary Compressed Files"&gt; &lt;scheme name="gzip" dll="%Windir%\system32\inetsrv\gzip.dll" /&gt; &lt;staticTypes&gt; &lt;add mimeType="text/*" enabled="true" /&gt; &lt;add mimeType="message/*" enabled="true" /&gt; &lt;add mimeType="application/x-javascript" enabled="true" /&gt; &lt;add mimeType="application/atom+xml" enabled="true" /&gt; &lt;add mimeType="application/xaml+xml" enabled="true" /&gt; &lt;add mimeType="*/*" enabled="false" /&gt; &lt;/staticTypes&gt; &lt;/httpCompression&gt; ---- &lt;urlCompression /&gt; </code></pre> <p>What am I missing here?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload