1

I am developing a web app in app engine python, I cant find GET /favicon.ico in console when I execute it in chrome or IE. Whereas there is no issue with firefox or safari, my favicon.ico is displayed in it.

here is my handlers in app.yaml:

handlers:
- url: /favicon.ico
  static_files: favicon.ico
  upload: favicon.ico

- url: /sitemap.xml    
  static_files: sitemap.xml
  upload: sitemap.xml

- url: /robots.txt    
  static_files: robots.txt
  upload: robots.txt

- url: /static
  static_dir: static

- url: .*
  script: main.app

There is no 404 error for favicon, /facivon.ico not getting executed in chrome , IE.

3
  • Since it works with FF/Safari, your app.yaml is set up properly (although the indentation is wrong in the post). This is probably browser specific behavior. You may need to add <link rel="shortcut icon"> tag into your html.
    – dragonx
    Commented Feb 23, 2013 at 20:05
  • I tried using <link rel="shortcut icon"> and <link rel="shortcut icon" href="/favicon.ico">, still no luck
    – ratbaby
    Commented Feb 24, 2013 at 5:04
  • I am able to fix this by simply moving my /favicon.ico to /static/favicon.ico ! Its works cool. I dont know why that works now . U got any idea ? thanks for your help anyway.
    – ratbaby
    Commented Feb 24, 2013 at 5:57

1 Answer 1

1

You could try

- url: /favicon\.ico
  mime_type: image/vnd.microsoft.icon
  static_files: static/favicon.ico
  upload: static/favicon.ico

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.