Fixed text compression not working

This commit is contained in:
2025-11-23 00:00:49 +01:00
parent 9572d2633a
commit 51c2b1ccd3

View File

@@ -94,6 +94,7 @@ if (app.Environment.IsDevelopment())
app.UseSwaggerUI(); app.UseSwaggerUI();
} }
app.UseResponseCompression();
app.UseStaticFiles(new StaticFileOptions app.UseStaticFiles(new StaticFileOptions
{ {
OnPrepareResponse = ctx => OnPrepareResponse = ctx =>
@@ -121,7 +122,6 @@ app.UseStaticFiles(new StaticFileOptions
app.UseRouting(); app.UseRouting();
app.UseAuthorization(); app.UseAuthorization();
app.UseResponseCaching(); app.UseResponseCaching();
app.UseResponseCompression();
string[] supportedCultures = ["de", "en"]; string[] supportedCultures = ["de", "en"];
var localizationOptions = new RequestLocalizationOptions() var localizationOptions = new RequestLocalizationOptions()