diff --git a/appview/state/router.go b/appview/state/router.go --- a/appview/state/router.go +++ b/appview/state/router.go @@ -32,8 +32,6 @@ s.pages, ) - router.Get("/favicon.svg", s.Favicon) - router.Get("/favicon.ico", s.Favicon) router.Get("/pwa-manifest.json", s.PWAManifest) router.Get("/robots.txt", s.RobotsTxt) diff --git a/appview/state/state.go b/appview/state/state.go --- a/appview/state/state.go +++ b/appview/state/state.go @@ -202,19 +202,6 @@ return s.db.Close() } -func (s *State) Favicon(w http.ResponseWriter, r *http.Request) { - w.Header().Set("Content-Type", "image/svg+xml") - w.Header().Set("Cache-Control", "public, max-age=31536000") // one year - w.Header().Set("ETag", `"favicon-svg-v1"`) - - if match := r.Header.Get("If-None-Match"); match == `"favicon-svg-v1"` { - w.WriteHeader(http.StatusNotModified) - return - } - - s.pages.Favicon(w) -} - func (s *State) RobotsTxt(w http.ResponseWriter, r *http.Request) { w.Header().Set("Content-Type", "text/plain") w.Header().Set("Cache-Control", "public, max-age=86400") // one day diff --git a/appview/pages/templates/layouts/base.html b/appview/pages/templates/layouts/base.html --- a/appview/pages/templates/layouts/base.html +++ b/appview/pages/templates/layouts/base.html @@ -11,6 +11,10 @@ + + + +