diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2017-06-16 12:35:15 -0400 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2017-06-16 09:35:15 -0700 |
commit | 4d4f2cea8603f4d06c945bf50ce22dfc77babe7f (patch) | |
tree | 8d2c950102edea4794f217da48d3f5ef7f5ceadd /api/file.go | |
parent | 1897a7ea9e1715e3aff9edb64f7c3f541f381881 (diff) | |
download | chat-4d4f2cea8603f4d06c945bf50ce22dfc77babe7f.tar.gz chat-4d4f2cea8603f4d06c945bf50ce22dfc77babe7f.tar.bz2 chat-4d4f2cea8603f4d06c945bf50ce22dfc77babe7f.zip |
PLT-6678 Change Cache-Control to private for files (#6660)
Diffstat (limited to 'api/file.go')
-rw-r--r-- | api/file.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/file.go b/api/file.go index 9a5de5669..1e7c7d66d 100644 --- a/api/file.go +++ b/api/file.go @@ -280,7 +280,7 @@ func getPublicFileOld(c *Context, w http.ResponseWriter, r *http.Request) { } func writeFileResponse(filename string, contentType string, bytes []byte, w http.ResponseWriter, r *http.Request) *model.AppError { - w.Header().Set("Cache-Control", "max-age=2592000, public") + w.Header().Set("Cache-Control", "max-age=2592000, private") w.Header().Set("Content-Length", strconv.Itoa(len(bytes))) if contentType != "" { |