Skip to content

Instantly share code, notes, and snippets.

@martin-brennan
Created January 11, 2015 10:33
Show Gist options
  • Save martin-brennan/5bda08de3c269c63566a to your computer and use it in GitHub Desktop.
Save martin-brennan/5bda08de3c269c63566a to your computer and use it in GitHub Desktop.
iis gzip compression
cd %PROGRAMFILES%IIS Express
appcmd set config -section:urlCompression /doDynamicCompression:true
appcmd set config /section:staticContent /+[fileExtension='.json',mimeType='application/json']
appcmd.exe set config -section:system.webServer/httpCompression /+"dynamicTypes.[mimeType='application/json',enabled='True']" /commit:apphost
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment