jason810496 commented on code in PR #61043:
URL: https://github.com/apache/airflow/pull/61043#discussion_r2741147880


##########
airflow-core/src/airflow/api_fastapi/core_api/app.py:
##########
@@ -185,3 +183,4 @@ def init_middlewares(app: FastAPI) -> None:
         from airflow.api_fastapi.auth.managers.simple.middleware import 
SimpleAllAdminMiddleware
 
         app.add_middleware(SimpleAllAdminMiddleware)
+    app.add_middleware(GZipMiddleware, minimum_size=1024, compresslevel=5)

Review Comment:
   It would be nice to move the comment of GZipMiddleware down here as well, 
and we could remove the existed comments above. 
   
   ```suggestion
       # Compress responses greater than 1kB with optimal compression level as 5
       # with level ranging from 1 to 9 with 1 (fastest, least compression)
       # and 9 (slowest, most compression)
       app.add_middleware(GZipMiddleware, minimum_size=1024, compresslevel=5)
   ```
   
   Thanks.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to