[GH-ISSUE #14850] feat: Add Option to Cache Markdown-Referenced Images Locally #17382

Closed
opened 2026-04-19 23:07:21 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @rainoffallingstar on GitHub (Jun 10, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/14850

Check Existing Issues

  • I have searched the existing issues and discussions.

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

Originally created by @rainoffallingstar on GitHub (Jun 10, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/14850 ### Check Existing Issues - [x] I have searched the existing issues and discussions. ### 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
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#17382