Compress middleware for Koa
var compress =var Koa =var app =app
The options are passed to
An optional function that checks the response content type to decide whether to compress. By default, it uses compressible.
Minimum response size in bytes to compress.
1024 bytes or
Manually turning compression on and off
You can always enable compression by setting
this.compress = true.
You can always disable compression by setting
this.compress = false.
This bypasses the filter check.