dotnet/aspnetcore

Compression: Add threshold for compression

Offen

#5.994 geöffnet am 05.12.2016

 (11 Kommentare) (2 Reaktionen) (0 zugewiesene Personen)C# (10.653 Forks)batch import
affected-fewarea-middlewareenhancementfeature-response-compressionhelp wantedseverity-minor

Repository-Metriken

Stars
 (37.933 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

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.

Contributor Guide