Browse files

New defaulticon, tweaked documentation

git-svn-id: 0c1c7bd3-9391-4859-b94e-4e2dcdc6a516
  • Loading branch information...
1 parent fb49fac commit d9a02953beafcd4d789c21f01551cd914eb84c83 jason committed Dec 29, 2010
Showing with 13 additions and 2 deletions.
  1. BIN default3.png
  2. +4 −0
  3. +9 −2 templates/index.html
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -414,6 +414,10 @@ def writeDefault(self, fromCache = False):
+ elif self.request.get("defaulticon") == "bluepng":
+ self.response.out.write(open("default3.png").read())
@@ -20,7 +20,13 @@
<h3>Default icon</h3>
<p>You can specify a default icon to be displayed should the favicon not be found...</p>
- <p>If you pass <code>?defaulticon=none</code> then no default icon will be returned (and an HTTP 204 "No content" response code), <code>?defaulticon=1pxgif</code> will return a 200 response and a 1x1 pixel GIF file.</p>
+ <p>You can also pass the following <code>defaulticon</code> values for other responses when a favicon isn't found:</p>
+ <ul>
+ <li><code>none</code>: no default icon will be returned (and an HTTP 204 "No content" response code)</li>
+ <li><code>1pxgif</code>: 1px x 1px transparent GIF</li>
+ <li><code>lightpng</code>: grey 'world' icon (as used by Google Chrome)</li>
+ <li><code>bluepng</code>: light blue 'world' icon (as used by Google's favicon service)</li>
+ </ul>
<h3>Multiple domains</h3>
<p>To improve the performance of pages with many favicons on them you can overcome <a href="">browser connection limits</a> by pointing to the icon on different domains. You can see this in action on the <a href="/test/">test page</a> where we use the first letter of the domain to generate a subdomain name. The domains are of the format...</p>
@@ -109,6 +115,8 @@
+ <li><a href="">DuckDuckGo</a></li>
+ <li><a href="">Media UK</a></li>
<li><a href="">Google Reader Favicon ++</a> (Greasemonkey script)</li>
<li><a href="">James Dempster</a></li>
<li><a href="">Jason Cartwright</a></li>
@@ -118,7 +126,6 @@
<li><a href=""></a></li>
<li><a href="">'Yet Another Google Bookmarks Extension'</a></li>
<li><a href="">Ultimate Status Bar</a> (Safari extension)</li>
- <li><a href="">DuckDuckGo</a></li>
<h2>Known problems</h2>

0 comments on commit d9a0295

Please sign in to comment.