相应压缩

This commit is contained in:
2022-11-22 11:46:39 +08:00
parent 45c6238766
commit b401a6604f
+4 -2
View File
@@ -166,6 +166,9 @@ namespace IRaCIS.Core.API
app.UseCors(t => t.AllowAnyOrigin().AllowAnyMethod().AllowAnyHeader());
//响应压缩
app.UseResponseCompression();
//不需要 token 访问的静态文件 wwwroot css, JavaScript, and images don't require authentication.
app.UseStaticFiles();
@@ -183,8 +186,7 @@ namespace IRaCIS.Core.API
////限流 中间件
//app.UseIpRateLimiting();
//响应压缩
app.UseResponseCompression();
if (env.IsDevelopment())
{