相应压缩
parent
45c6238766
commit
b401a6604f
|
@ -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())
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue