大网数据广告活动
网站运营与故障问答

Can using a non-standard filename for favicon.ico impact SEO?

· 52CE 我爱测

In my application the admin of the application can upload different favicon from time to time. Right now I am using the favicon on my page like this: <link rel="shortcut icon" href="/img/favicon.ico?v=4f32ecc8f43d"> I have no iss…

问题原文

原帖链接 · raj · CC BY-SA 3.0

In my application the admin of the application can upload different favicon from time to time. Right now I am using the favicon on my page like this:

 <link rel="shortcut icon" href="/img/favicon.ico?v=4f32ecc8f43d">

I have no issue updating the new favicon from my application.

The issue is that it doesn't get updated to end user unless he clears his cache (because it is a static file). To overcome this I have one solution in my mind: Update the favicon every time with new guid so that it can be updated at end machine on the next page load. The url for favicon will look like this then:

 <link rel="shortcut icon" href="/img/c96e9689-e6af-4b36-839b-e2014f269f69.ico?v=4f32ecc8f43d">

This will solve the favicon refresh on end user's machine.

My concern is that on replacing the name of favicon from "favicon.ico" with .ico will impact SEO?

社区高分解答

原帖链接 · L Martin · CC BY-SA 3.0

You can name the favicon whatever you want - the minimal needed for a client to read it is:

<link rel="icon" href="some-changing-file-name.ico">

The 'shortcut' part is depreciated. If you're changing the file name, there's no need for the querystring. The whole point of a query string on a favicon is to force an update even though the assets URI remains identical. If the client isn't updating - then set file expiry using the Web Server. If you're using Apache, then try this link. You need to set files with these values:

Cache-Control: no-cache, must-revalidate

Edit: And to answer the question, Favicons are not a ranking factor. They are promoted to increase usability, which in turn creates positive user signals on Google.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Webmasters Stack Exchange
适用范围
以原帖系统、软件版本与发布日期为准(2016-03-07)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。