Skip to content
This repository has been archived by the owner on Apr 16, 2020. It is now read-only.
/ compressor Public archive

[DEPRECATED] Compress middleware for koa that always compresses

License

Notifications You must be signed in to change notification settings

koajs/compressor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

[DEPRECATED] Compress middleware for koa that always compresses

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published