[PR #212] [MERGED] Website: the new favicon reaches browsers at once, and /favicon.ico exists #2408

Closed
opened 2026-11-02 15:55:49 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/212
Author: @ludovic111
Created: 10/14/2026
Status: ✅ Merged
Merged: 10/14/2026
Merged by: @ludovic111

Base: main ← Head: fix/website-favicon-cache


📝 Commits (1)

  • a3fcacb Website: the new favicon reaches browsers at once, and /favicon.ico exists

📊 Changes

1 file changed (+23 additions, -0 deletions)

View changed files

📝 website/build.mjs (+23 -0)

📄 Description

The redesign shipped the new mark in website/public/favicon.svg, favicon-32.png and apple-touch-icon.png, and the live site serves it, but under the same URLs the Caddyfile lets browsers cache for a week (/favicon*, max-age=604800), so anyone who visited before still sees the old icon. There was also no /favicon.ico (it answered 404), which browsers request on their own.

  • build.mjs links each icon as /favicon.svg?v=<content hash> (and the PNG and apple-touch icon), on index.html and 404.html: an icon change now reaches everyone at once.
  • build.mjs writes dist/favicon.ico: the 32-pixel PNG in an ICO container (one entry; no new dependency).

Checked with a local build: the links carry ?v=2a8c0871ae / 8a1d8759b1 / 040c885d7e, and file dist/favicon.ico reads "MS Windows icon resource - 1 icon, 32x32 with PNG image data".

Website only, so skip-release.

🤖 Generated with Claude Code


🔄 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/horizon-rust/horizon/pull/212 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/14/2026 **Status:** ✅ Merged **Merged:** 10/14/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/website-favicon-cache` --- ### 📝 Commits (1) - [`a3fcacb`](https://github.com/horizon-rust/horizon/commit/a3fcacb212f4cc7247c74f177eef183af9baa0b6) Website: the new favicon reaches browsers at once, and /favicon.ico exists ### 📊 Changes **1 file changed** (+23 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `website/build.mjs` (+23 -0) </details> ### 📄 Description The redesign shipped the new mark in `website/public/favicon.svg`, `favicon-32.png` and `apple-touch-icon.png`, and the live site serves it, but under the same URLs the Caddyfile lets browsers cache for a week (`/favicon*`, `max-age=604800`), so anyone who visited before still sees the old icon. There was also no `/favicon.ico` (it answered 404), which browsers request on their own. - `build.mjs` links each icon as `/favicon.svg?v=<content hash>` (and the PNG and apple-touch icon), on `index.html` and `404.html`: an icon change now reaches everyone at once. - `build.mjs` writes `dist/favicon.ico`: the 32-pixel PNG in an ICO container (one entry; no new dependency). Checked with a local build: the links carry `?v=2a8c0871ae` / `8a1d8759b1` / `040c885d7e`, and `file dist/favicon.ico` reads "MS Windows icon resource - 1 icon, 32x32 with PNG image data". Website only, so `skip-release`. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 15:55:49 +07: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
horizon-rust/horizon#2408
No description provided.