Norvell's Public Machinations
Join us to discuss the challenges, solutions and best practices for in-house JavaScript code sharing. Tuesday, 12/17 at 10am PT/1pm ET.Sign up here »

koa-compressor

1.0.3 • Public • Published

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)

Install

npm i koa-compressor

DownloadsWeekly Downloads

392

Version

1.0.3

License

MIT

Last publish

Collaborators

  • avatar
  • avatar
  • avatar
  • avatar