package
Compress middleware for koa that always compresses
npm install koa-compressorGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
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 ignoredvary header is setthis.compress optioncontent-length on compressed bodies if available (should probably port that to koa-compress)eivifj
eivind.fjeldstad@gmail.com
Estimated unpacked size across 11 packages.
259.4 kB
Includes dependencies.
5 direct · 3 outdated