Add cache control header to static content

This commit is contained in:
Las Zenow 2017-07-06 08:13:15 +00:00
parent ab9c5281a5
commit b338cb3393
3 changed files with 4 additions and 1 deletions

View file

@ -52,6 +52,7 @@ func coverHandler(h handler) {
headers := h.w.Header()
headers["Content-Type"] = []string{"image/jpeg"}
addCacheControlHeader(h.w, false)
_, err = io.Copy(h.w, f)
if err != nil {