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.

貢獻者指南