相应压缩

Test.EIImageViewer
hang 2022-11-22 11:46:39 +08:00
parent 45c6238766
commit b401a6604f
1 changed files with 4 additions and 2 deletions

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