fix(core): update favicon (#12581)

not changing the favicon.ico file to make sure the change will be updated on the user's browser to get rid of caching

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit

- **Style**
  - Updated the favicon URL across the application and link previews to include a version query parameter (`?v=2`) for better cache control.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
pengx17
2025-05-28 05:52:16 +00:00
parent f4e7595f4b
commit d5dd680855
6 changed files with 8 additions and 8 deletions
@@ -286,7 +286,7 @@ export class WorkerController {
// fix favicon
{
// head default path of favicon
const faviconUrl = new URL('/favicon.ico', response.url);
const faviconUrl = new URL('/favicon.ico?v=2', response.url);
const faviconResponse = await fetch(faviconUrl, { method: 'HEAD' });
if (faviconResponse.ok) {
appendUrl(faviconUrl.toString(), res.favicons);