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()