favicon

Remove Etag from favicon.ico

核能气质少年 提交于 2019-12-03 15:31:45
using yslow on a project I am experiencing a "problem" I can not solve. Yslow keeps complaining: There is 1 component with misconfigured ETags http://www.domain.com/favicon.ico I have the following in my .htaccess file # Add Proper MIME-Type for Favicon AddType image/x-icon .ico # Enable Apache's mod_expires Module ExpiresActive On ExpiresByType image/x-icon "access plus 6 month" <ifModule mod_headers.c> Header unset ETag </ifModule> FileETag None Does anybody have an idea how to fix it? Yavane Add this: ExpiresByType image/ico "access plus 1 years" My .htaccess file: <IfModule mod_expires.c>

Add favicon from Spring MVC

给你一囗甜甜゛ 提交于 2019-12-03 15:30:20
I'm working in spring mvc application as a new bee. I need to set up a favicon for the application which does not have any common file to do this. So instead of placing the relevant code lines for all the JSP s, I'm thinking of doing this using application-servlet.xml which calls for any HTTP request. Can anyone help me on doing this with one shot ? You are welcome for suggest any other easy way to do this. edited- I was thinking that, executing javascript code code for any request, may be help to this. But not sure that is possible as well as how I can do that Just to expand on NimChimpsky's

Why doesn't the favicon icon show in Firebug Net Panel

不想你离开。 提交于 2019-12-03 14:14:43
I have seen this on a lots of websites e-g: Even here: http://www.w3.org/2005/10/howto-favicon When you load all the resources for this page under Net Panel in firebug and check the images tab, it shows all the images on the page but the favicon doesnt show up. Why? Should I be looking for it somewhere else in firebug. The first answer to this thread , by Jan Odvarko (who is a contributor to Firebug) , seems to explain why the favicon is not displayed in Firebug's net tab (quoting) : The problem is that the network request for favicon isn't associated with the page where the icon is displayed.

Display the Android WebView's favicon

半城伤御伤魂 提交于 2019-12-03 13:11:59
问题 I'd like to display the favicon of the website I am accessing via the android.webkit.WebView. I've tried two ways to get it: 1) WebViewClient.onPageStarted() method has a favicon parameter that is always null. 2) WebChromeClient.onReceivedIcon() method is never called. 3) Called WebView.getFavicon() in onPageStarted() and onPageFinished() but it always returns null. I haven't been able to find an example online that shows how to access the favicon. Any hints would be greatly appreciated. 回答1:

HttpURLConnection - “https://” vs. “http://”

自作多情 提交于 2019-12-03 12:23:42
问题 I'm trying to get the favicon of the url the user enters, for example _url = "google.com"; I use HttpUrlConnection to get the Bitmap of the favicon from the /favicon.ico extension from the host url. String faviconString = Uri.parse(_url).getHost() + "/favicon.ico"; URL faviconUrl = null; Bitmap favicon = null; try { faviconString = "http://" + faviconString; faviconUrl = new URL(faviconString); HttpURLConnection connection = (HttpURLConnection) faviconUrl.openConnection(); connection

Minimum Viable Favicon Code

十年热恋 提交于 2019-12-03 11:31:20
问题 I'm confused about what's the simplest way to get favicons working on the majority of handsets and browsers. 1) Some sites suggest that it is enough to use: <link rel="apple-touch-icon-precomposed" href="apple-touch-icon-180x180.png"> That will work for iOS 8, and should be picked up by Android, BlackBerry, Windows, etc. 2) Other sites insist that every single possible favicon must be explicitly specified: <link rel="apple-touch-icon" sizes="57x57" href="/apple-touch-icon-57x57.png"> <link

favicon / start sreens for all browsers and devices [closed]

断了今生、忘了曾经 提交于 2019-12-03 10:16:48
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 years ago . I was wondering if i have everything covered to include all favicons / start splash screens for all browsers and devices? Is this enough? Or what are the main ones I should be covering? Am i missing any below: <link rel="icon" href="/images/favicons/favicon.png"> <link rel="apple

How do I give my web sites an icon for iPhone?

久未见 提交于 2019-12-03 09:31:11
How do I set the icon that appears proper on the iPhone for the web sites I have create? And for the sake of completeness, a link to Scott Hanselman's posting, which contains some additional tips as well: Add Home Screen iPhone Icons and Adjust the ViewPort Zack Peterson From the Apple Developer Connection Safari Web Content Guide for iPhone page Specifying a Webpage Icon for Web Clip ... The user can add a web application or webpage link to the Home screen. These links, represented by an icon, are called web clips. Follow these simple steps to specify an icon to represent your web application

.htaccess - redirect favicon

≡放荡痞女 提交于 2019-12-03 09:24:50
问题 How do I redirect all requests for favicon.ico in root directory or any subdirectory to /images/favicon.ico 回答1: Try this rule: RewriteEngine on RewriteRule ^favicon\.ico$ /images/favicon.ico [L] Edit And for favicon.ico with arbitrary path segment depth: RewriteCond $0 !=images/favicon.ico RewriteRule ^([^/]+/)*favicon\.ico$ /images/favicon.ico [L] 回答2: For a favicon at www.mysite.com/images/favicon.ico the most robust method would be: RewriteCond %{REQUEST_URI} !^/images/favicon\.ico$ [NC]

Flask.url_for() error: Attempted to generate a URL without the application context being pushed

匿名 (未验证) 提交于 2019-12-03 08:36:05
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a trivial app where I'm trying to redirect the favicon per: http://flask.pocoo.org/docs/0.10/patterns/favicon/ app = flask.Flask(__name__) app.add_url_rule('/favicon.ico', redirect_to=flask.url_for('static', filename='favicon.ico')) But this fails with: RuntimeError: Attempted to generate a URL without the application context being pushed. This has to be executed when application context is available. So, guessing, I try this: app = flask.Flask(__name__) with app.app_context(): flask.current_app.add_url_rule('/favicon.ico', redirect