diff --git a/pkg/server/statichandler/statichandler.go b/pkg/server/statichandler/statichandler.go index a81b07eba..26c10b488 100644 --- a/pkg/server/statichandler/statichandler.go +++ b/pkg/server/statichandler/statichandler.go @@ -183,6 +183,13 @@ func (s *Server) ServeSPA(w http.ResponseWriter, r *http.Request) { w.Header().Set("Cache-Control", "public, max-age=3600") } + if matchETag := r.Header.Get("If-None-Match"); matchETag != "" { + if matchETag == quotedETag { + w.WriteHeader(http.StatusNotModified) + return + } + } + http.FileServer(s.spaFS).ServeHTTP(w, r) }