dotnet/aspnetcore

Compression: Add threshold for compression

Open

#5,994 创建于 2016年12月5日

在 GitHub 查看
 (11 评论) (2 反应) (0 负责人)C# (10,653 fork)batch import
affected-fewarea-middlewareenhancementfeature-response-compressionhelp wantedseverity-minor

仓库指标

Star
 (37,933 star)
PR 合并指标
 (平均合并 16天 9小时) (30 天内合并 258 个 PR)

描述

There are instances where compression is a detriment by comparison to the benefit. Where the time to compress and gzip payload is higher than the original payload.

ngnix defaults to all content with the gzip_min_length setting used to set the minimum length of a response to that will be gzipped.

expressjs compression module is 1k by default, uses threshold option to set globally.

贡献者指南