dotnet / dotnet/aspnetcore

Compression: Add threshold for compression

Open
#5,994 11 comments 2 reactions 0 assignees View on GitHub
affected-few area-middleware enhancement feature-response-compression help wanted severity-minor
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 10h
Merged PRs (30d)
281

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.