Skip to content

Brand images carry a version in their address - #361

Merged
mattshax merged 1 commit into
mainfrom
brand-icon-version
Oct 2, 2026
Merged

mattshax merged 1 commit into
mainfrom
brand-icon-version

Conversation

@mattshax

@mattshax mattshax commented Oct 2, 2026 •

Copy link
Copy Markdown
Member

Brand images carry a version in their address (#361)

The brand icon and favicon were always served at the same address (/api/brand-icon, /api/favicon) with an hour of browser caching, so changing the icon in Settings left browsers showing the old one for up to an hour. Each address now carries v=, a short hash of the configured path or URL plus the file's modification time, so a different image, or the same file replaced, is a new address that browsers fetch at once. The installable-app manifest uses the same versioned address. A new test checks that replacing the file changes the address; all tests pass.

@mattshax
mattshax merged commit 103ebeb into main Oct 2, 2026
2 checks passed
@mattshax
mattshax deleted the brand-icon-version branch October 2, 2026 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant