Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ysmoradi committed Dec 4, 2024
1 parent a01b984 commit 794ebc5
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public static void Use(WebApplication app, IWebHostEnvironment env, IConfigurati
context.Response.GetTypedHeaders().CacheControl = new()
{
Public = true,
NoTransform = context.Response.ContentType is "br", // Prevents intermediate caches or proxies from applying weaker compression levels.
NoTransform = true,
MaxAge = TimeSpan.FromDays(7)
};
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public static void ConfigureMiddlewares(this WebApplication app)
context.Response.GetTypedHeaders().CacheControl = new()
{
Public = true,
NoTransform = context.Response.ContentType is "br", // Prevents intermediate caches or proxies from applying weaker compression levels.
NoTransform = true,
MaxAge = TimeSpan.FromDays(7)
};
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public static void Use(WebApplication app, IWebHostEnvironment env, IConfigurati
context.Response.GetTypedHeaders().CacheControl = new()
{
Public = true,
NoTransform = context.Response.ContentType is "br", // Prevents intermediate caches or proxies from applying weaker compression levels.
NoTransform = true,
MaxAge = TimeSpan.FromDays(7)
};
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public static void Use(WebApplication app, IWebHostEnvironment env, IConfigurati
context.Response.GetTypedHeaders().CacheControl = new()
{
Public = true,
NoTransform = context.Response.ContentType is "br", // Prevents intermediate caches or proxies from applying weaker compression levels.
NoTransform = true,
MaxAge = TimeSpan.FromDays(7)
};
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public static void Use(WebApplication app, IWebHostEnvironment env, IConfigurati
context.Response.GetTypedHeaders().CacheControl = new()
{
Public = true,
NoTransform = context.Response.ContentType is "br", // Prevents intermediate caches or proxies from applying weaker compression levels.
NoTransform = true,
MaxAge = TimeSpan.FromDays(7)
};
});
Expand Down

0 comments on commit 794ebc5

Please sign in to comment.