Skip to content

fix(web): add cache-busting for favicon and icons - #498

Merged
leoisadev1 merged 1 commit into
mainfrom
fix/favicon-cache-busting
Jan 8, 2026
Merged

fix(web): add cache-busting for favicon and icons#498
leoisadev1 merged 1 commit into
mainfrom
fix/favicon-cache-busting

Conversation

@leoisadev1

Copy link
Copy Markdown
Member

Summary

  • Add ?v=2 query parameter to favicon.ico and apple-touch-icon.png links
  • Add cache-busting to og:image and twitter:image meta tags
  • Update manifest.json icon sources with version parameter

Problem

After the osschat rebrand (commit c974aaa), the new favicon wasn't showing in production even after hard refresh. Browsers aggressively cache favicons and often ignore standard cache invalidation.

Solution

Add query parameter version strings (?v=2) to all icon/image URLs. This forces browsers to treat them as new resources, bypassing cached versions.

Files Changed

  • apps/web/src/routes/__root.tsx - favicon, apple-touch-icon, og:image, twitter:image
  • apps/web/public/manifest.json - PWA icon sources

Testing

  • Build passes locally
  • Type-check passes

Browsers aggressively cache favicons, often ignoring hard refreshes.
Added ?v=2 query parameter to favicon, apple-touch-icon, og:image,
twitter:image, and manifest.json icon sources to force cache invalidation
after the osschat rebrand.
@railway-app

railway-app Bot commented Jan 8, 2026

Copy link
Copy Markdown

🚅 Deployed to the openchat-pr-498 environment in OpenChat

Service Status Web Updated (UTC)
web ✅ Success (View Logs) Web Jan 8, 2026 at 9:58 pm

@railway-app
railway-app Bot temporarily deployed to OpenChat / openchat-pr-498 January 8, 2026 21:56 Destroyed
@github-actions

github-actions Bot commented Jan 8, 2026

Copy link
Copy Markdown
Contributor

🚀 Preview Deployment Ready

Environment URL
Frontend https://web-openchat-pr-498.up.railway.app
Convex Dashboard Dashboard

Convex Preview Backend

  • Cloud URL: https://neat-malamute-103.convex.cloud
  • Site URL: https://neat-malamute-103.convex.site

🤖 Deployed automatically by GitHub Actions

@leoisadev1

Copy link
Copy Markdown
Member Author

@greptileai please review this PR

@leoisadev1
leoisadev1 merged commit 8782ffc into main Jan 8, 2026
4 checks passed
@leoisadev1
leoisadev1 deleted the fix/favicon-cache-busting branch January 8, 2026 22:03
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