For indyco 4.4.0.0 |
Enabling dynamic content compression allows the server to reduce network usage (by compressing json responses) at the cost of higher CPU utilization.
Enable compression on Windows installation
To enable content compression, simply add the following configuration to the appsettings.Production.json file:
Indyco: { "GzipCompression": "true" }
Enable compression on Docker installation
To enable content compression in Docker, it is necessary to add the following environment variable:
- Indyco__GzipCompression=true
Note
By default, content compression is disabled. Activating it increases the risk of CRIME and BREACH attacks as specified in
For versions until 4.3.0.0 |
In case installed version is until 4.3.0.0, for on premise version it's possibile activate gzip compression directly from web services settings.
Here an example to activate gzip compression on IIS
- Turn on Dynamic content compression in the site configuration
- Configure dynamic content compression for json responses by adding the following snippet to the web.config file inside the installation directory
<system.webServer> <httpCompression> <dynamicTypes> <add mimeType="application/json" enabled="true" /> </dynamicTypes> </httpCompression> </system.webServer>
Note
By default, content compression is disabled. Activating it increases the risk of CRIME and BREACH attacks as specified in
.NET documentation