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") ||