mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-12-11 09:13:02 +03:00
[PR #2188] [MERGED] Add config option to set the HTTP redirect code for external icons #3289
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/dani-garcia/vaultwarden/pull/2188
Author: @jjlin
Created: 12/30/2021
Status: ✅ Merged
Merged: 1/3/2022
Merged by: @dani-garcia
Base:
main← Head:icons📝 Commits (1)
b7eedbcAdd config option to set the HTTP redirect code for external icons📊 Changes
3 files changed (+28 additions, -3 deletions)
View changed files
📝
.env.template(+8 -1)📝
src/api/icons.rs(+8 -1)📝
src/config.rs(+12 -1)📄 Description
The default code is 307 (temporary) to make it easier to test different icon services, but once a service has been decided on, users should ideally switch to using permanent redirects for cacheability.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.