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.

貢獻者指南