Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ysmoradi committed Nov 8, 2024
1 parent 3f506ed commit 6effccd
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 6effccd

Please sign in to comment.