We regularly see 404 in our logs for requests for "old versions" of the badge. On each new release (and therefore on each new precompile), a new favicon file is created with a unique hash. This, apparently, breaks down when someone has saved the icon, for example. by placing a shortcut on your site on your iOS home screen: the icon is lost and the broken icon icon is displayed. Therefore, we abandon the approach to favicon_link_tag/ assets and return back to the icon stored in the folder public, just include:
<link href="favicon.ico">
<link href="favicon_ios.png" rel="apple-touch-icon" type="image/png">
Or in our case in HAML:
%link{:href => 'favicon.ico'}
%link{:href => 'favicon_ios.png', :rel => 'apple-touch-icon', :type => 'image/png'}
source
share