node package manager
Stop wasting time. Easily manage code sharing in your team. Create a free org ยป


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.


  • 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)