Add response compression in .NET Core

Posted by Joe Enos on August 18, 2021 · 1 min read
services.AddResponseCompression(options => options.Providers.Add<GzipCompressionProvider>());

app.UseResponseCompression();