koa-compressor
v1.0.3
Published
Compress middleware for koa that always compresses
Downloads
5,291
Readme
Koa Compressor
Similar to koa-compress,
except it basically always compresses the response to gzip.
This is particularly nice for SPDY as the specifications states that user agents must always support gzip compression.
Thus, this compression middleware is a little simpler.
Differences:
Accept-Encodingis ignored- No
varyheader is set - No
this.compressoption - Sets
content-lengthon compressed bodies if available (should probably port that to koa-compress)
