Created
May 12, 2022 14:23
-
-
Save DavidDeSloovere/fa4d0b72cc5b0937a0421146795b72a7 to your computer and use it in GitHub Desktop.
ASP.NET Core - Only use compression for some endpoints
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.UseWhen( | |
context => context.Request.Path.StartsWithSegments("/api"), | |
builder => builder.UseResponseCompression()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment