summaryrefslogtreecommitdiffstats
path: root/api/post.go
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2015-12-14 19:01:22 -0500
committerChristopher Speller <crspeller@gmail.com>2015-12-14 19:01:22 -0500
commit74f427fb1a5da8ccd0bbc4e4104830cfa12c70fb (patch)
treeb063683a1ec022c3ccbb2561d30734e0a9156905 /api/post.go
parent6c7c04f38d0485dadcd7dd0ea2ba3a95bdfde448 (diff)
parentf51d45f6cba0e5a1249146afe4a1c78cf32b7598 (diff)
downloadchat-74f427fb1a5da8ccd0bbc4e4104830cfa12c70fb.tar.gz
chat-74f427fb1a5da8ccd0bbc4e4104830cfa12c70fb.tar.bz2
chat-74f427fb1a5da8ccd0bbc4e4104830cfa12c70fb.zip
Merge branch 'release-1.3'
Diffstat (limited to 'api/post.go')
-rw-r--r--api/post.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/api/post.go b/api/post.go
index a102cdf4d..b9bd2c052 100644
--- a/api/post.go
+++ b/api/post.go
@@ -1062,5 +1062,7 @@ func searchPosts(c *Context, w http.ResponseWriter, r *http.Request) {
}
}
+ w.Header().Set("Cache-Control", "no-cache, no-store, must-revalidate")
+ w.Header().Set("Expires", "0")
w.Write([]byte(posts.ToJson()))
}