有没有一些我可以在HTML中使用的指令来告诉浏览器不要求图标?
解决方法
不,我不认为有。从
Wikipedia:
Most web browsers do not require any HTML to retrieve a favicon that conforms to the de facto file name and type (favicon.ico) located in the web site’s root. If no favicon link is detected upon HTML page load completion and no prevIoUs site visits are recorded in the browser’s history,a favicon.ico is requested automatically.[8]
您唯一可以做的是将浏览器明确指向不同的位置(例如可以返回204 no content
)
<link rel="shortcut icon" href="http://www.example.com/my_empty_resource" />