dotnet/aspnetcore

Compression: Add threshold for compression

开放

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

 (11 条评论) (2 个反应) (0 位负责人)C# (10,653 个派生)batch import
affected-fewarea-middlewareenhancementfeature-response-compressionhelp wantedseverity-minor

仓库指标

星标
 (37,933 个星标)
PR 合并指标
 (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.

贡献者指南