apps like pdsls.dev expects favicon to exist in well-known path
Signed-off-by: Seongmin Lee git@boltless.me
/favicon.ico
#1015
apps like pdsls.dev expects favicon to exist in well-known path
Signed-off-by: Seongmin Lee git@boltless.me
/favicon.ico
apps like pdsls.dev expects favicon to exist in well-known path
Not including `favicon.svg` as I don't think apps expecting static
favicon path will care about svg icons.
Signed-off-by: Seongmin Lee <git@boltless.me>
I think it is better not to nest the http handlers like that.
pages.StaticFile pattern can be easily used for other routes like:
router.Get("/favicon.ico", s.pages.StaticFile("logos/dolly.ico").ServeHTTP)
router.Get("/pwa-manifest.json", s.pages.StaticFile("manifest.webmanifest").ServeHTTP)
router.Get("/robots.txt", s.pages.StaticFile("robots.txt").ServeHTTP)
// ...
/favicon.ico
apps like pdsls.dev expects favicon to exist in well-known path
Signed-off-by: Seongmin Lee <git@boltless.me>
Does it have to be a redirect? Canβt we simply serve the same file here?
@anirudh.fi that was my original PR
oh wait, it was using redirect too, my bad.
perhaps we should include favicon.svg as well!
/favicon.ico
apps like pdsls.dev expects favicon to exist in well-known path
Signed-off-by: Seongmin Lee <git@boltless.me>
hm, we already have
page.Static, why an other handler? can we use the existing http handler and just give it a file path?maybe something like that?