TIL: How to add gzip compression to ASP.NET Core API responses

from blog Just Some Code, | ↗ original
Today, I got the report that one API endpoint took minutes to respond. It turned out that it returned hundreds of large complex objects. Those objects contained branding colors, copy text, and hotel configurations in a reservation system. This is how to add response compression in ASP.NET Core 6.0. To compress responses with ASP.NET Core,...