为什么我得到的错误apple-touch-icon-precomposed.png

我创建了一个新的rails3项目,但我看到以下日志多次在我的服务器日志。为什么我得到这些请求,我如何避免这些?

Started GET “/apple-touch-icon-precomposed.png” for 192.168.6.2 at
2012-09-18 20:03:53 +0530

ActionController::RoutingError (No route matches [GET]
“/apple-touch-icon-precomposed.png”):

我没有给任何地方这个链接,不想在任何地方渲染这个图像。我很无奈为什么这个资源正在尝试加载。

Editorial Note: The information in this answer is not particularly wrong, however, more technical detail is available here:

  • 07000

我想苹果设备做出这些请求,如果设备所有者添加网站。这是相当于favicon。要解决,添加2 100×100 png文件,保存为apple-touch-icon-precomposed.png和apple-touch-icon.png,并将其上传到服务器的根目录。之后,错误应该消失了。

I noticed lots of requests for apple-touch-icon-precomposed.png and apple-touch-icon.png in the logs that tried to load the images from the root directory of the site. I first thought it was a misconfiguration of the mobile theme and plugin, but found out later that Apple devices make those requests if the device owner adds the site to it.

资料来源:Why Webmasters Should Analyze Their 404 Error Log (Mar 2012; by Martin Brinkmann)

http://stackoverflow.com/questions/12480497/why-am-i-getting-error-for-apple-touch-icon-precomposed-png

本站文章除注明转载外,均为本站原创或编译
转载请明显位置注明出处:为什么我得到的错误apple-touch-icon-precomposed.png