set cache-control header on covers

This commit is contained in:
sentriz
2023-09-14 01:28:21 +01:00
parent 1900a7b39f
commit 1cc675b6af

View File

@@ -238,7 +238,10 @@ func (c *Controller) ServeGetCoverArt(w http.ResponseWriter, r *http.Request) *s
log.Printf("error stating `%s`: %v", cachePath, err)
return nil
}
w.Header().Set("Cache-Control", "public, max-age=3600")
http.ServeFile(w, r, cachePath)
return nil
}