mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-17 17:02:01 -05:00
[GH-ISSUE #14850] feat: Add Option to Cache Markdown-Referenced Images Locally #17382
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?
Originally created by @rainoffallingstar on GitHub (Jun 10, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/14850
Check Existing Issues
Problem Description
When using image generation services that return results via Markdown links (e.g., ![alt] (https://temporary-url.com/image.png)), the embedded image URLs often have short expiration times. Once expired, these images become inaccessible in past conversations, degrading the user experience.
Desired Solution you'd like
Introduce a configurable option to automatically cache all Markdown-referenced images from conversations locally. Implement logic to:
Cache images on appearance:
When a Markdown image link is detected in a message, download and store the image locally (e.g., in ./cache/images/ with filename hashing for deduplication).
Prioritize cached images on load:
When rendering past messages, attempt to load images from the local cache first. Fall back to the original URL only if the cached version is unavailable (e.g., for new/unseen images).
Alternatives Considered
NULL
Additional Context
NULL