favicon

Does a favicon have to be 32x32 or 16x16?

这一生的挚爱 提交于 2020-01-08 23:59:14
问题 I'd like to use a single image as both a regular favicon and iPhone/iPad friendly favicon. Is this possible? Would an iPad-friendly 72x72 PNG scale if linked to as a regular browser favicon? Or do I have to use a separate 16x16 or 32x32 image? 回答1: For IE, Microsoft recommends 16x16, 32x32 and 48x48 packed in the favicon.ico file. For iOS, Apple recommends specific file names and resolutions, at most 180x180 for latest devices running iOS 8. Android Chrome primarily uses a manifest and also

Favicon doesnt update

笑着哭i 提交于 2020-01-06 07:30:51
问题 I copied a new favicon to the server , but the old one shows up. Could another one have precedence even though this one is called in the head of the page? <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" /> The image is a sibling of the page. 回答1: I always find browsers cache favicons fairly aggressively, so check this first. Secondly, different browsers look for a favicon slightly differently. Explained at the bottom here: http://en.wikipedia.org/wiki/Favicon Providing you

How to find out which favicon a browser actually uses

北战南征 提交于 2020-01-05 08:58:01
问题 I have a new website with a set of favicon images auto generated from a source file using Real Favicon Generator, and there are: 9 Apple favicons 1 Android favicon 3 named favicons 1 Safari pinned SVG 1 json manifest 1 set of Microsoft tile image/colour Obviously most of these can be placed for their respective vendors - Apple, Microsoft tiles, etc. I have an issue in that running the website on Firefox, I want the favicon it uses to change but I do not know which one it actually uses? I have

Loading favicon icon from Express web server causes Content-Security-Policy violation

泄露秘密 提交于 2020-01-04 06:33:51
问题 I get the following error when I try to load the website I am creating Refused to load the image 'http://167.71.89.74/favicon.ico' because it violates the following Content Security Policy directive: "default-src 'none'". Note that 'img-src' was not explicitly set, so 'default-src' is used as a fallback. It looks like my attempts to fix the error change the X-Content-Security-Policy, but not the Content-Security-Policy. I am using a simple Express server to load the page requests. I found

To check favicon using Google API

倾然丶 夕夏残阳落幕 提交于 2020-01-04 06:28:38
问题 How can we check favicon provided by Google API is the default globe? https://www.google.com/s2/u/0/favicons?domain=facebook.com returns the favicon of the facebook , where as https://www.google.com/s2/u/0/favicons?domain=test.com returns the globe as the favicon. How can we check if the favicon is default globe or not? 回答1: I made a function a while back what checks if the default globe icon is returned. function getFavicon($domain) { $data = file_get_contents('https://plus.google.com/_

Favicon shows up on rails local, not on hosted app

大憨熊 提交于 2020-01-04 04:03:14
问题 I put my favicon.ico in my public folder, and it shows up on my localhost, but when I check it out on the internet, shows up instead. My app is hosted through heroku, and the domain is provided by hover. Where is this failing? Also, in case this helps, here is the code I'm using to render the favicon: <!DOCTYPE html> <html> <head> <link rel="shortcut icon" href="/favicon.ico" /> <title>Shoulak Predictions</title> <%= stylesheet_link_tag 'application', media: 'all' %> <%= javascript_include

Adding a favicon to a Flask server without HTML

☆樱花仙子☆ 提交于 2020-01-03 09:29:31
问题 My flask server constantly reports xx.xxx.xxx.xxx - - [DD/MM/YYYY HH:MM:SS] "GET /favicon.ico HTTP/1.1" 404 - In the code for my flask server I've added, @app.route('/favicon.ico') def favicon(): return send_from_directory(os.path.join(app.root_path, 'static'),'favicon.ico', mimetype='image/vnd.microsoft.icon') and I've added a favicon titled favicon.ico to the same directory that my flask server is running from. Favicon location If I try to navigate to http://www.myurl.com/favicon.ico I get

如何获取某个网站的favicon.ico

主宰稳场 提交于 2020-01-02 13:08:11
http://moco.imooc.com/player/report.html 今天看到这个网站上,左侧的小图片挺好看的,想弄下来,检查源码,也没有看到 < head > < meta http-equiv = "Content-Type" content = "text/html; charset=gb2312" /> < link rel = "shortcut icon" href = "/favicon.ico" type = "image/x-icon" /> </ head > 后来看了下面文章: https://zhangge.net/4344.html http://bbs.csdn.net/topics/340187367 http://www.faviconico.org/ 知道了 http://www.sitename.com/favicon.ico 最后通过:http://moco.imooc.com/favicon.ico 来源: https://www.cnblogs.com/liyanli-mu640065/p/6900578.html

Regex to extract Favicon url from a webpage

╄→尐↘猪︶ㄣ 提交于 2020-01-02 06:15:17
问题 Please help me to find the Favicon url from the sample html below using Regular expression. It should also check for file extension ".ico". I am developing a personal bookmarking site and i want to save the favicons of links which i bookmark. I have already written the c# code to convert icon to gif and save but i have very limited knowledge about regex so i am unable to select this tag because ending tags are different in different sites . Example of ending tags "/>" "/link>" My programming

How can I replace the default favicon in an slc loopback generated webapp?

给你一囗甜甜゛ 提交于 2020-01-01 05:29:08
问题 I have generated an app using slc loopback command. So the generated express webapp has its strongloop favicon. How can I change the favicon? I am using this in server.js app.use(loopback.favicon(path.resolve(__dirname, '../client/favicon.ico'))); I also tried with html link tag, but still default is loading. What am I doing wrong? 回答1: Set the path to your custom favicon in the server/middleware.json : { "initial:before": { "loopback#favicon": { "params": "path/to/your/favicon.ico" } }, … We