Skip to content

Commit 1cc675b

Browse files
committed
set cache-control header on covers
1 parent 1900a7b commit 1cc675b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

server/ctrlsubsonic/handlers_raw.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,10 @@ func (c *Controller) ServeGetCoverArt(w http.ResponseWriter, r *http.Request) *s
238238
log.Printf("error stating `%s`: %v", cachePath, err)
239239
return nil
240240
}
241+
242+
w.Header().Set("Cache-Control", "public, max-age=3600")
241243
http.ServeFile(w, r, cachePath)
244+
242245
return nil
243246
}
244247

0 commit comments

Comments
 (0)