Internet explorer Symfony2 favicon不适用于IE9

Internet explorer Symfony2 favicon不适用于IE9,internet-explorer,symfony,favicon,Internet Explorer,Symfony,Favicon,我们正在处理favicon Symfony2的问题,IE9上没有显示。下面是我们正在使用的代码: <!-- Favicon--> <link rel="apple-touch-icon" href="{{ asset('images/favicon.png') }}"> <link rel="icon" href="{{ asset('images/favicon.png') }}"> <!--[if IE]><

我们正在处理favicon Symfony2的问题,IE9上没有显示。下面是我们正在使用的代码:

   <!-- Favicon-->
    <link rel="apple-touch-icon" href="{{ asset('images/favicon.png') }}">
    <link rel="icon" href="{{ asset('images/favicon.png') }}">
    <!--[if IE]><link rel="shortcut icon" href="{{ asset('images/favicon.ico') }}"><![endif]-->
其他浏览器都在显示它,但不是IE 有什么提示吗?
提前感谢

IE仅支持根目录中的favicon。

您的favicon.ico文件是否存在于favicon.png所在的同一文件夹中?是的,它存在。它们都位于web/imagesCache上,在sf和浏览器的两侧都有刷新,仍然存在。如果您使用类似的工具,您看到它正在下载吗?您的IE是否以兼容模式运行?我们找到了原因,我们使用https,但在qc环境中,我们没有签名证书,因此这与IE不一样,我们关闭了安全连接并显示图标。这没有错。我的答案可能不具体,但IE版本7之前只支持根目录中的favicon.ico,不查看rel=icon!