dotnet/aspnetcore

Compression: Add threshold for compression

Open

#5 994 ouverte le 5 déc. 2016

Voir sur GitHub
 (11 commentaires) (2 réactions) (0 assignés)C# (10 653 forks)batch import
affected-fewarea-middlewareenhancementfeature-response-compressionhelp wantedseverity-minor

Métriques du dépôt

Stars
 (37 933 stars)
Métriques de merge PR
 (Merge moyen 16j 9h) (258 PRs mergées en 30 j)

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.

Guide contributeur