mirror of
https://github.com/open-webui/open-webui.git
synced 2026-08-27 06:46:30 -05:00
[GH-ISSUE #23012] feat: Support random cache_salt parameter in extra_body for cache isolation in each unique user
#35395
Reference in New Issue
Block a user
Originally created by @ehfd on GitHub (Mar 25, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/23012
Check Existing Issues
Verify Feature Scope
Problem Description
In vLLM or SGLang, there is an option to support
cache_salt, which allows secure Prefix Caching isolation for each user (https://github.com/vllm-project/vllm/issues/16016, https://github.com/vllm-project/vllm/pull/17045, https://github.com/sgl-project/sglang/issues/9163, https://github.com/sgl-project/sglang/pull/10317).Since in many cases, the LLM API Token for the backend (such as vLLM or SGLang) is shared in web interfaces, this operation should be performed from the frontend-side.
Desired Solution you'd like
Add the below randomly generated key value for each user (the base64-encoded value should be from a salted hash unique to the user):
Example (base64-encoded from
abcdefghijklmnopqrstuvwxyzabcdefghijklmnopq):extra_body={"cache_salt": "YWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXphYmNkZWZnaGlqa2xtbm9wcQ=="}Alternatives Considered
This needs to be implemented where individual users are managed.
Additional Context
No response
@tjbck commented on GitHub (Mar 25, 2026):
You can use filter function for this.