From 732db39faae7336efa3d86893842b62a45d8c340 Mon Sep 17 00:00:00 2001 From: Robin Olsen <129996395+Telikz@users.noreply.github.com> Date: Fri, 13 Feb 2026 13:54:45 +0100 Subject: [PATCH] Update pkg/web/server/routes.go Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- pkg/web/server/routes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/web/server/routes.go b/pkg/web/server/routes.go index a3f43b3..6831870 100644 --- a/pkg/web/server/routes.go +++ b/pkg/web/server/routes.go @@ -46,7 +46,7 @@ func (s *Server) handleAssets(r chi.Router, assets embed.FS) { r.Handle("/assets/*", http.StripPrefix("/assets/", http.FileServer(http.Dir("pkg/web/assets")))) - r.HandleFunc("GET /robots.txt", func(w http.ResponseWriter, r *http.Request) { + r.Get("/robots.txt", func(w http.ResponseWriter, r *http.Request) { w.Header().Set("Cache-Control", "no-cache") http.ServeContent(w, r, "robots.txt", time.Now(), strings.NewReader("User-agent: *\nAllow: /")) })