mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
[PR #12985] [CLOSED] [perf] Vite compression and middleware #23070
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/12985
Author: @prene
Created: 4/17/2025
Status: ❌ Closed
Base:
dev← Head:WIP-Vite-compression-middleware📝 Commits (2)
1de7fbcAdd vite compressionb00775cAdd 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.
Draft PR for discussion: https://github.com/open-webui/open-webui/discussions/12986
##Checklist
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
Screenshots or Videos
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.