Component that adds compressions to http responses.

By @mantradev

Install with:

$ mantrad download-component compressresponses@1.0.0

Or install last version with:

$ mantrad download-component compressresponses

compressresponses Mantra component

This component adds the middleware provide by compression module.


The comoponent defines a simple configuration value at its file mantra.json to enable or disable this middleware:

"compressresponses": {
    "enablecompression": true

You can override the value at ComponentsConfig section of mantraconfig.json project configuration file.