koa-compressor
Compress middleware for koa that always compresses
Last updated 4 years ago by jongleberry .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install koa-compressor 
SYNC missed versions from official npm registry.

Koa Compressor

NPM version Build status Test coverage Dependency Status License Downloads Gittip

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-Encoding is ignored
  • No vary header is set
  • No this.compress option
  • Sets content-length on compressed bodies if available (should probably port that to koa-compress)

Current Tags

  • 1.0.3                                ...           latest (4 years ago)

4 Versions

  • 1.0.3                                ...           4 years ago
  • 1.0.2                                ...           5 years ago
  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
Downloads
Today 0
This Week 199
This Month 7,473
Last Day 0
Last Week 2,491
Last Month 1,130
Dependencies (5)
Dev Dependencies (5)

Copyright 2014 - 2016 © taobao.org |