IIS 7 and Above
How do I get IIS7 to compress json / asmx webservices?
Last post Dec 19, 2012 02:59 AM by yanuar
Mar 06, 2009 02:44 PM|EgilOfBorg|LINK
I have a dedicated server running IIS7 on Server 2008 standard. In my web.config I added the following, but still no luck.
<urlCompression doDynamicCompression="true" />
<add mimeType="application/json" enabled="true" />
<add mimeType="application/json; charset=utf-8" enabled="true" />
I can see (through Firebug) that my .aspx pages are compressed, so compression is working, but my XHR request/responses are not. Whats missing?
This is the request/response headers I see:
Fri, 06 Mar 2009 15:23:43 GMT
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:126.96.36.199) Gecko/2009021910 Firefox/3.0.7
compression asmx iis7 dynamiccompressoin json
Mar 06, 2009 04:49 PM|anilr|LINK
The httpCompression section can only be specified in applicationhost.config.
Mar 06, 2009 07:12 PM|EgilOfBorg|LINK
I tried putting it in Windows\System32\inetsrv\config\applicationHost.config - still no Content-Encoding: gzip in the header. What am I missing?
Thanks for your help!
Mar 06, 2009 07:57 PM|anilr|LINK
An application-pool recycle is required for changes to httpCompression section to be picked up.
Jan 26, 2010 03:58 PM|Udi|LINK
In opposite to IIS 6,
I can not make IIS 7 to compress WITH "Chunked transfer-encoding"...
Is there an easy way to do so (windows server 2k8 x64 IIS 7.0)?
in iis 6 just AspEnableChunkedEncoding="TRUE"
at the metabase.xml
Is the equivalent to metabase.xml is applicationhost.config? if so, then how do i set there the support for chunky thingy?
Feb 04, 2010 10:02 PM|dlee00|LINK
I am having the same issue here. Regular aspx pages work fine, while the transfer encoding Chunked pages do not. And those are most important to compress.
I am using .net 2.0 code with webservices and webparts from sharepoint. Server 2008 R2 with IIS 7.5. Using fiddler to see responses. I notice the content type ofr the chunked .aspx pages are blank.
transfer encoding chunked compression iis7
Feb 11, 2010 07:13 PM|dlee00|LINK
can anyone help me with a solution???
Nov 02, 2012 09:40 AM|eddymul|LINK
Dec 19, 2012 02:59 AM|yanuar|LINK
I have a same problem with this, applicationHost.config has been modified and applicationPool has been recycled, iis server has been restarted, but all of them cannot solve this problem, there i miss something? anyone can help me too?