Simplify handling + enable caching for favicon.ico
commit45c01a68885c72ce55b98dfb4278b711d6f5e230
authorJeremy Chadwick <jdc@koitsu.org>
Tue, 13 Dec 2016 07:18:38 +0000 (13 14:18 +0700)
committerM_ars <m_ars@linksysinfo.org>
Tue, 13 Dec 2016 13:17:24 +0000 (13 20:17 +0700)
treed5c125ab25d58ab3da40bc1a69867936e5ae7c8f
parentaba33b10d7c68b127efa605b9da1e918a6380322
Simplify handling + enable caching for favicon.ico

- Use the more-common image/x-icon MIME type
- Caching time of 300 seconds (5*60) per mime_handlers array
  wasn't applied due to MIME type being NULL
- Remove wo_favicon() function, as we can use do_file directly

Reference: http://stackoverflow.com/questions/13827325/correct-mime-type-for-favicon-ico
Reference: http://www.linksysinfo.org/index.php?threads/advancedtomato-flat-material-designed-web-gui-shibby-base.70254/page-9#post-282149
release/src-rt-6.x.4708/router/httpd/tomato.c