dotnet/aspnetcore

Compression: Add threshold for compression

オープン

#5,994 opened on 2016/12/05

 (11 件のコメント) (2 件のリアクション) (0 人の担当者)C# (10,653 件のフォーク)batch import
affected-fewarea-middlewareenhancementfeature-response-compressionhelp wantedseverity-minor

Repository metrics

Stars
 (37,933 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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.

コントリビューターガイド