dotnet/aspnetcore

Compression: Add threshold for compression

Open

#5994 aperta il 5 dic 2016

Vedi su GitHub
 (11 commenti) (2 reazioni) (0 assegnatari)C# (10.653 fork)batch import
affected-fewarea-middlewareenhancementfeature-response-compressionhelp wantedseverity-minor

Metriche repository

Star
 (37.933 star)
Metriche merge PR
 (Merge medio 16g 9h) (258 PR mergiate in 30 g)

Descrizione

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.

Guida contributor