April, 2015
Enable json + gzip compression on iis
If you need to enable json compression with gzip module on IIS, the first thing we are going to do is: Run cmd.exe and paste the folllowing command in dos console (Not in powershell): call %windir%\system32\inetsrv\appcmd.exe set config -section:system.webServer/serverRuntime /frequentHitThreshold:”1″ call %windir%\system32\inetsrv\appcmd.exe set config -section:system.webServer/urlCompression /doDynamicCompression:”True” call %windir%\system32\inetsrv\appcmd.exe set config -section:system.webServer/httpCompression /-“dynamicTypes.[mimeType=’application/json’]” call %windir%\system32\inetsrv\appcmd.exe set config -section:system.webServer/httpCompression /+”dynamicTypes.[mimeType=’application/json’,enabled=’True’]” call %windir%\system32\inetsrv\appcmd.exe set config -section:system.webServer/httpCompression /-“dynamicTypes.[mimeType=’application/json; charset=utf-8′]” call %windir%\system32\inetsrv\appcmd.exe set config -section:system.webServer/httpCompression /+”dynamicTypes.[mimeType=’application/json; charset=utf-8′,enabled=’True’]” call %windir%\system32\inetsrv\appcmd.exe set config -section:system.webServer/httpCompression /-“dynamicTypes.[mimeType=’application/javascript’]” call %windir%\system32\inetsrv\appcmd.exe set config -section:system.webServer/httpCompression /+”dynamicTypes.[mimeType=’application/javascript’,enabled=’True’]” call %windir%\system32\inetsrv\appcmd.exe set config -section:system.webServer/httpCompression /-“dynamicTypes.[mimeType=’application/x-javascript’]”Read More