Why am I getting error for apple-touch-icon-precomposed.png

后端 未结 11 1799
梦谈多话
梦谈多话 2020-11-29 16:06

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?

11条回答
  •  一生所求
    2020-11-29 16:29

    If a user from Safari Web browser (Apple devices) visit your site. The browser tries to fetch the site icon if it is not defined in in the following order:

    1. apple-touch-icon-57x57-precomposed.png
    2. apple-touch-icon-57x57.png
    3. apple-touch-icon-precomposed.png
    4. apple-touch-icon.png

    To resolve this issue either define an icon for safari web browsers or apple devices. Add something like this to head section of your site:

    
    

    If you want to keep clean then upload the icon to root dir of your site with proper name.

    The default icon size is 57px.

    You can find more details on iOS developer library.

提交回复
热议问题