mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-24 03:02:09 -05:00
[PR #13112] [CLOSED] [Perf] Gzip compression & middleware #77978
Reference in New Issue
Block a user
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/open-webui/open-webui/pull/13112
Author: @prene
Created: 4/21/2025
Status: ❌ Closed
Base:
dev← Head:perf-gzip-compression-&-middleware📝 Commits (2)
5b78e7dAdd vite compressionc950d9aAdd compression middleware📊 Changes
5 files changed (+122 additions, -18 deletions)
View changed files
📝
backend/open_webui/main.py(+4 -18)➕
backend/open_webui/utils/gzip_middleware.py(+80 -0)📝
package-lock.json(+31 -0)📝
package.json(+1 -0)📝
vite.config.ts(+6 -0)📄 Description
This PR adds vite pre-compression of assets as well as a lightweight middleware to serve compressed assets, if client allows.
Discussion: https://github.com/open-webui/open-webui/discussions/12986
Draft PR with comment by @tjbck : https://github.com/open-webui/open-webui/pull/12985
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
This PR adds vite pre-compression of assets as well as a lightweight middleware to serve compressed assets, if client allows.
Added
Changed
None
Deprecated
None
Removed
None
Fixed
None
Security
None
Breaking Changes
None
Additional Information
Discussion: https://github.com/open-webui/open-webui/discussions/12986
Draft PR with comment by @tjbck : https://github.com/open-webui/open-webui/pull/12985
Screenshots or Videos
Before

After

Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the CONTRIBUTOR_LICENSE_AGREEMENT, and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.