Add cache control header to static content
This commit is contained in:
parent
ab9c5281a5
commit
b338cb3393
3 changed files with 4 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Reference in a new issue