asp.net mvc - MVC4 WebAPI not compressing GET responses -


i'm working on project uses mvc4 webapi (rc). responses not gzip compressed (dynamic compression in iis enabled).

the responses normal mvc controllers compressed. need specific setting enable gzip compression webapi responses?

i add custom compression handler, if possible, use built-in iis compression.

btw, know duplicate of compress http response, accepted answer there doesn't answer question.

is dynamic compression enabled mimetype application/json; charset=utf-8? default not enabled if dynamic compression enabled.

to see if enabled, can in applicationhost.config file under %windir%\system32\inetsrv\config in section.

you should not edit file, instead use appcmd.exe change this: https://stackoverflow.com/a/7375645/243936


Comments

Popular posts from this blog

How do you change vbulletin's home page to the forums instead of the default (CMS or Activity Stream)? -

c++ - Troubles when compiling phash program -