Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Dec 03, 2009 11:58 PM by ricka6
Dec 03, 2009 06:12 PM|LINK
In IIS7, I turned on dynamic compression at the app level for my ASP.NET MVC application. Afterwards, I traced the app with fiddler and compression is not happening on JSON responses . Has anyone gotten IIS 7 compression to work with mvc controller calls
that return JSON? I noticed some folks rolled their own action filters to implement compression in their mvc apps but this looks more painful and less configurable than IIS compression.
compression IIS mvc
Dec 03, 2009 06:59 PM|LINK
Are you sure that you are sending valid "Accept-encoding" HTTP header value? Try to check this thread:
Dec 03, 2009 08:43 PM|LINK
Relevant parts of my request:
Dec 03, 2009 09:35 PM|LINK
Appears IIS7 does not compress JSON by default (would be nice if it did). Apparently, you have to edit apphost.config directly (notepad is your best bet on 64 bit systems) or indirectly (use appcmd.exe) to instruct IIS to compress responses with the JSON
json compression IIS7
Dec 03, 2009 11:58 PM|LINK
skmcfadden - Thanks for posting this, I'll add it to the
The first link says it all, you are correct.