Dynamic compression doesn't work by default in IIS and there are few config changes that are needed to be done for it to working. Please refer the below steps to implement the same
Enable Compression in IIS
application
Prerequisite: Dynamic content compression module should be installed. If it is not installed, please install. It can be done using Server Manager.
Do the followings for Webclient and other sites related to
the application.
·
Enable Dynamic Compression at site level.
· Traverse Configuration Editor to check and configure appropriate compression settings.
·
Click on dynamic Types and add application/json
mimeType if missing. That is responsible to compress api level responses. Add
this in Webclient and API site levels.
· Save and restart the app pool.
·
Verify in the client side that dynamic compression is
working or not. It should have “Content-Encoding: gzip” in Response Headers.