[PR #6487] [MERGED] Fix icon redirect caching #3792

Closed
opened 2026-03-03 10:21:34 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/dani-garcia/vaultwarden/pull/6487
Author: @BlackDex
Created: 11/23/2025
Status: Merged
Merged: 11/23/2025
Merged by: @dani-garcia

Base: mainHead: icon-fixes


📝 Commits (1)

  • d54c17d Fix icon redirect caching

📊 Changes

1 file changed (+7 additions, -6 deletions)

View changed files

📝 src/api/icons.rs (+7 -6)

📄 Description

As reported in #6477, redirection of favicon's didn't allowed caching. This commit fixes this by adding the Cached wrapper around the response. It will use the same TTL's used for downloading icon's locally.

Also removed _ as valid domain character, these should not be used in FQDN's at all. Those only serve as special chars used in domain labels, mostly used in SRV or TXT records.

Fixes #6477


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/dani-garcia/vaultwarden/pull/6487 **Author:** [@BlackDex](https://github.com/BlackDex) **Created:** 11/23/2025 **Status:** ✅ Merged **Merged:** 11/23/2025 **Merged by:** [@dani-garcia](https://github.com/dani-garcia) **Base:** `main` ← **Head:** `icon-fixes` --- ### 📝 Commits (1) - [`d54c17d`](https://github.com/dani-garcia/vaultwarden/commit/d54c17ddbe6ed1e91d11fa60fd03e23e5b19924d) Fix icon redirect caching ### 📊 Changes **1 file changed** (+7 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `src/api/icons.rs` (+7 -6) </details> ### 📄 Description As reported in #6477, redirection of favicon's didn't allowed caching. This commit fixes this by adding the `Cached` wrapper around the response. It will use the same TTL's used for downloading icon's locally. Also removed `_` as valid domain character, these should not be used in FQDN's at all. Those only serve as special chars used in domain labels, mostly used in SRV or TXT records. Fixes #6477 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 10:21:34 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/vaultwarden#3792
No description provided.