summaryrefslogtreecommitdiffstats
path: root/api4/user.go
diff options
context:
space:
mode:
Diffstat (limited to 'api4/user.go')
-rw-r--r--api4/user.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/api4/user.go b/api4/user.go
index b0d9ac699..cb1ae0fa3 100644
--- a/api4/user.go
+++ b/api4/user.go
@@ -214,10 +214,10 @@ func getProfileImage(c *Context, w http.ResponseWriter, r *http.Request) {
w.Header().Set("Cache-Control", fmt.Sprintf("max-age=%v, public", 5*60)) // 5 mins
} else {
w.Header().Set("Cache-Control", fmt.Sprintf("max-age=%v, public", 24*60*60)) // 24 hrs
+ w.Header().Set(model.HEADER_ETAG_SERVER, etag)
}
w.Header().Set("Content-Type", "image/png")
- w.Header().Set(model.HEADER_ETAG_SERVER, etag)
w.Write(img)
}
}