Last post Dec 03, 2009 11:58 PM by ricka6
Dec 03, 2009 06:12 PM|skmcfadden|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|Augi|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|skmcfadden|LINK
Relevant parts of my request:
Dec 03, 2009 09:35 PM|skmcfadden|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|ricka6|LINK
skmcfadden - Thanks for posting this, I'll add it to the
The first link says it all, you are correct.