From fb6a2d5c4ef807739d65fd02bfa9c70f898743d7 Mon Sep 17 00:00:00 2001 From: Bryan Frimin Date: Mon, 2 Feb 2026 12:12:09 +0100 Subject: [PATCH] Fix badly encoded etag value Signed-off-by: Bryan Frimin --- pkg/server/statichandler/statichandler.go | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/pkg/server/statichandler/statichandler.go b/pkg/server/statichandler/statichandler.go index 704774a93..a81b07eba 100644 --- a/pkg/server/statichandler/statichandler.go +++ b/pkg/server/statichandler/statichandler.go @@ -172,14 +172,8 @@ func (s *Server) ServeSPA(w http.ResponseWriter, r *http.Request) { return } - w.Header().Set("ETag", etag) - - if matchETag := r.Header.Get("If-None-Match"); matchETag != "" { - if matchETag == etag { - w.WriteHeader(http.StatusNotModified) - return - } - } + quotedETag := `"` + etag + `"` + w.Header().Set("ETag", quotedETag) if strings.HasSuffix(path, ".js") || strings.HasSuffix(path, ".css") || strings.HasSuffix(path, ".png") || strings.HasSuffix(path, ".jpg") ||