相应压缩
This commit is contained in:
@@ -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())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user