dotnet/aspnetcore

Compression: Add threshold for compression

Aberta

#5.994 aberto em 5 de dez. de 2016

 (11 comentários) (2 reações) (0 responsável)C# (10.653 forks)batch import
affected-fewarea-middlewareenhancementfeature-response-compressionhelp wantedseverity-minor

Métricas do repositório

Stars
 (37.933 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

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.

Guia do colaborador