mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #3860] [MERGED] fix: remove excluded paths from gzip middleware in router initialization #5540
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#5540
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/MHSanaei/3x-ui/pull/3860
Author: @NabiKAZ
Created: 2/26/2026
Status: ✅ Merged
Merged: 3/1/2026
Merged by: @MHSanaei
Base:
main← Head:gzip-exclusions📝 Commits (1)
dad03fcfix: remove excluded paths from gzip middleware in router initialization📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
web/web.go(+1 -1)📄 Description
What is the pull request?
Previously, the
panel/api/path was included in the gzip middleware excluded paths list for an unknown reason. I could not find any functional or technical justification for excluding this API endpoint from compression, so it has been removed from the exclusion list.Before:
After:
By allowing gzip compression for
panel/api/, the API responses are now properly compressed. As shown in the screenshots, this resulted in approximately 81% reduction in download size and about 71% improvement in transfer speed, improving overall API performance and efficiency.Which part of the application is affected by the change?
Type of Changes
Screenshots
See attached screenshots demonstrating the reduction in response size and improved transfer speed after enabling gzip compression for the API endpoints.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.