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.
Maybe you not installed the Dynamic Content Compression feature yet. 1. Go to: Turn Windows features on or off 2. Breakdown anc check: Internet Information Services -> World Wide Web Services -> Performance Features -> Dynamic Content Compression for Win 2008
you can refer to: http://blog.wassupy.com/2009/08/enabling-dynamic-http-compression-in.html
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?
EgilOfBorg
2 Posts
How do I get IIS7 to compress json / asmx webservices?
Mar 06, 2009 02:44 PM|LINK
Hi
I have a dedicated server running IIS7 on Server 2008 standard. In my web.config I added the following, but still no luck.
<system.webServer>
<urlCompression doDynamicCompression="true" />
<httpCompression>
<dynamicTypes>
<add mimeType="application/json" enabled="true" />
<add mimeType="application/json; charset=utf-8" enabled="true" />
</dynamicTypes>
</httpCompression>
</system.webServer>
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:
compression asmx iis7 dynamiccompressoin json
anilr
2343 Posts
Microsoft
Re: How do I get IIS7 to compress json / asmx webservices?
Mar 06, 2009 04:49 PM|LINK
The httpCompression section can only be specified in applicationhost.config.
Software Design Engineer
IIS Core Server
EgilOfBorg
2 Posts
Re: How do I get IIS7 to compress json / asmx webservices?
Mar 06, 2009 07:12 PM|LINK
Hi anilr
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!
anilr
2343 Posts
Microsoft
Re: How do I get IIS7 to compress json / asmx webservices?
Mar 06, 2009 07:57 PM|LINK
An application-pool recycle is required for changes to httpCompression section to be picked up.
Software Design Engineer
IIS Core Server
Udi
1 Post
Re: How do I get IIS7 to compress json / asmx webservices?
Jan 26, 2010 03:58 PM|LINK
Hi.
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?
compression Chunked
dlee00
2 Posts
Re: How do I get IIS7 to compress json / asmx webservices?
Feb 04, 2010 10:02 PM|LINK
Hi,
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
dlee00
2 Posts
Re: How do I get IIS7 to compress json / asmx webservices?
Feb 11, 2010 07:13 PM|LINK
can anyone help me with a solution???
eddymul
1 Post
Re: How do I get IIS7 to compress json / asmx webservices?
Nov 02, 2012 09:40 AM|LINK
IIS JSON
yanuar
1 Post
Re: How do I get IIS7 to compress json / asmx webservices?
Dec 19, 2012 02:59 AM|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?