to get a personalized navigation.
to get a personalized navigation.
Hey,
I see that compression is still missing in the API. Especially the schema, which is 27MB, would benefit from adding compression. I'm guessing you're running the API on .NET 6, so adding compression should be straight forward.
var builder = WebApplication.CreateBuilder(options);
builder.Services.AddResponseCompression(options =>
{
options.EnableForHttps = true;
});
builder.Services.Configure<BrotliCompressionProviderOptions>(options =>
{
options.Level = CompressionLevel.Fastest;
});
And as the absolutely first middleware on the app builder
var app = builder.Build();
// this must come before all the other middlewares
app.UseResponseCompression();
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Copyright © 2022 Visma.com. All rights reserved.