为什么我的apple-touch-icon-precomposed.png出现错误 [英] Why am I getting error for apple-touch-icon-precomposed.png

查看:305
本文介绍了为什么我的apple-touch-icon-precomposed.png出现错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I have created a new rails3 project but I am seeing following logs many times in my server logs. Why I am getting these request and how can I avoid these?

在192.168.6.2开始获取"/apple-touch-icon-precomposed.png" 2012-09-18 20:03:53 +0530

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

ActionController :: RoutingError(没有路由与[GET]匹配 "/apple-touch-icon-precomposed.png"):

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

我没有在任何地方提供此链接,也不想在任何地方渲染此图像.我不知道为什么要尝试加载此资源.

I haven't given this link anywhere and don't want to render this image anywhere. I am clueless why this resource is being tried to be loaded.

推荐答案

我猜如果设备所有者向其添加站点,苹果设备会发出这些请求.这相当于收藏夹图标.要解决此问题,请添加2 100×100 png文件,将其另存为apple-touch-icon-precomposed.png和apple-touch-icon.png并将其上传到服务器的根目录.之后,错误应该消失了.

I guess apple devices make those requests if the device owner adds the site to it. This is the equivalent of the favicon. To resolve, add 2 100×100 png files, save it as apple-touch-icon-precomposed.png and apple-touch-icon.png and upload it to the root directory of the server. After that, the error should be gone.

我在试图从站点根目录加载图像的日志中注意到有很多关于apple-touch-icon-precomposed.png和apple-touch-icon.png的请求.我最初以为这是对移动主题和插件的错误配置,但是后来发现,如果设备所有者将网站添加到其中,Apple设备会发出这些请求.

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.

来源:> em>网站站长为什么要分析他们的404错误日志(2012年3月;作者马丁·布林克曼(Martin Brinkmann))

Source: Why Webmasters Should Analyze Their 404 Error Log (Mar 2012; by Martin Brinkmann)

这篇关于为什么我的apple-touch-icon-precomposed.png出现错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆