Monday, September 20, 2021

Dynamic Compression in IIS

 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.


·       Traverse to “system.webServer/httpCompression” section.

 








·      
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.





No comments:

Post a Comment

Data Governance compliance List

Sequence list with relevant compliance and data protection controls to implement data governance in the system