April, 2015

 

Habilitar Gzip compression en IIS

 Si necesitas habilitar la compression con elementos de json y otros mimes con el modulo de gzip, lo primero es ingresar al dos con el commando cmd and pegar los siguientes comandos en la consola.  (No en 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 setRead More


0 Flares Facebook 0 LinkedIn 0 Google+ 0 Twitter 0 0 Flares ×