diff --git a/server/api/stream.go b/server/api/stream.go index 8fa9c4974..ca65ebc9d 100644 --- a/server/api/stream.go +++ b/server/api/stream.go @@ -44,7 +44,7 @@ import ( // @Tags Events func EventStreamSSE(c *gin.Context) { c.Header("Content-Type", "text/event-stream") - c.Header("Cache-Control", "no-cache") + c.Header("Cache-Control", "no-store") c.Header("Connection", "keep-alive") c.Header("X-Accel-Buffering", "no") diff --git a/server/web/web.go b/server/web/web.go index 7199c4b64..2eb9b1aa2 100644 --- a/server/web/web.go +++ b/server/web/web.go @@ -109,7 +109,7 @@ func serveFile(f *prefixFS) func(ctx *gin.Context) { case strings.HasSuffix(ctx.Request.URL.Path, ".png"): mime = "image/png" case strings.HasSuffix(ctx.Request.URL.Path, ".svg"): - mime = "image/svg" + mime = "image/svg+xml" } ctx.Status(http.StatusOK) ctx.Writer.Header().Set("Cache-Control", "public, max-age=31536000")