Skip to content

feat: favicon - #9

Merged
Mimic890 merged 3 commits into
mainfrom
feat/favicon
Nov 4, 2026
Merged

Mimic890 merged 3 commits into
mainfrom
feat/favicon

Conversation

@Mimic890

@Mimic890 Mimic890 commented Nov 4, 2026

Copy link
Copy Markdown
Owner

Adds a favicon.

  • Every page: <link rel="icon" type="image/svg+xml"> to /assets/logo.svg when the bucket has it, else to /favicon.ico.
  • GET /favicon.ico never answers 404. Without a logo it serves the built-in mark (web/static/favicon.svg, embedded; accent background, white mark, fixed colors so it reads on light and dark tab bars). With a logo it answers 302 to /assets/logo.svg. Cache-Control: max-age=3600, because the logo can appear or go with any sync.
  • Test: link tag and /favicon.ico with and without a logo, and while the index is not loaded yet.
  • SPEC (EN + RU): endpoint table row, the bucket layout line for assets/logo.svg, Decision log. README (EN + RU): the logo also replaces the favicon.

Checked: headless Chrome renders /favicon.ico with the service's CSP and nosniff headers. HEAD answers 200. vet, staticcheck, govulncheck and go test -race pass.

@Mimic890
Mimic890 merged commit 78fe214 into main Nov 4, 2026
3 checks passed
@Mimic890
Mimic890 deleted the feat/favicon branch November 4, 2026 19:52
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