From 6effccd253b19bd1d3a29e16972d9985f68a426e Mon Sep 17 00:00:00 2001 From: Yaser Moradi Date: Fri, 8 Nov 2024 16:50:28 +0100 Subject: [PATCH] fix --- .../src/Server/Boilerplate.Server.Web/Program.Middlewares.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Web/Program.Middlewares.cs b/src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Web/Program.Middlewares.cs index 4971e04ae7..56e34cd22b 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Web/Program.Middlewares.cs +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Web/Program.Middlewares.cs @@ -75,6 +75,7 @@ public static void ConfigureMiddlewares(this WebApplication app) if (context.Request.Query.Any(q => string.Equals(q.Key, "v", StringComparison.InvariantCultureIgnoreCase)) && env.WebRootFileProvider.GetFileInfo(context.Request.Path).Exists) { + context.Request.Headers.AcceptEncoding = new(["zstd", "br"]); context.Response.OnStarting(async () => { context.Response.GetTypedHeaders().CacheControl = new()