mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
PLT-4983 Adding file info caching (#4781)
This commit is contained in:
@@ -1687,6 +1687,7 @@ func getFileInfosForPost(c *Context, w http.ResponseWriter, r *http.Request) {
|
||||
if HandleEtag(etag, w, r) {
|
||||
return
|
||||
} else {
|
||||
w.Header().Set("Cache-Control", "max-age=2592000, public")
|
||||
w.Header().Set(model.HEADER_ETAG_SERVER, etag)
|
||||
w.Write([]byte(model.FileInfosToJson(infos)))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user