Quantcast
Channel: All Forums
Viewing all articles
Browse latest Browse all 26542

Tricky IIS Compression

$
0
0

I'm running a SharePoint 2010 website on a Windows Server 2008 R2 wfe with IIS 7.5 and having trouble getting compression working. The website is available anonymously to the outside world.

Please assist.

- modified the applicationHost file (in %windir%\system32\inetsrv\config), particularly sections relating to urlCompression, httpCompression, and ServerRuntime (see settings below)

- modified the web.config file to add url/httpCompression settings (not sure if this was necessary)

- note that I manually created a directory for the site under %SystemDrive%\inetpub\temp\IIS Temporary Compressed Files and no files are being written there

- permissions on the directory have been amended to allow the app pool account and farm account (as well as local admins) full control

Testing:

- when I hit the site locally (on the web server itself), Fiddler shows Content-Encoding:gzip in the Response Header

- when I hit the site remotely (using a compression aware browser e.g. IE10 Chrome Firefox), Fiddler shows no Content-Encoding

- checking for compression with http://www.port80software.com confirms that the site is compressed

- looked into the TMG settings and everything seems correct

- Windows Firewall is turned on for the web server -- is there anything that needs adjusting there?

- enabled Request Filtering, but can't find any errors (though I'm having trouble accessing the freb xml files in IE -- used notepad instead)

%windir%\system32\inetsrv\appcmd.exe list config -section:urlcompression <system.webServer>   <urlCompression doStaticCompression="true" doDynamicCompression="true" /> </system.webServer>

%windir%\system32\inetsrv\appcmd.exe list config -section:httpcompression <system.webServer>   <httpCompression directory="%SystemDrive%\inetpub\temp\IIS Temporary Compressed Files">     <staticTypes>       <add mimeType="text/*" enabled="true" />      <add mimeType="message/*" enabled="true" />       <add mimeType="application/x-javascript" enabled="true" />       <add mimeType="application/atom+xml" enabled="true" />       <add mimeType="application/xaml+xml" enabled="true" />       <add mimeType="*/*" enabled="true" />     </staticTypes>     <dynamicTypes>       <add mimeType="text/*" enabled="true" />       <add mimeType="message/*" enabled="true" />       <add mimeType="application/x-javascript" enabled="true" />       <add mimeType="*/*" enabled="true" />       <add mimeType="application/x-javascript; charset=utf-8" enabled="true" />       <add mimeType="application/json" enabled="true" />       <add mimeType="application/json; charset=utf-8" enabled="true" />     </dynamicTypes>     <scheme name="gzip" dll="%Windir%\system32\inetsrv\gzip.dll" staticCompressionLevel="9" dynamicCompressionLevel="4" />   </httpCompression> </system.webServer>

%windir%\system32\inetsrv\appcmd.exe list config -section:serverruntime <system.webServer>   <serverRuntime frequentHitThreshold="1" /> </system.webServer>

Your thoughts would be greatly appreciated!


Viewing all articles
Browse latest Browse all 26542

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>