summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2015-12-11 14:19:49 -0500
committerChristopher Speller <crspeller@gmail.com>2015-12-14 08:19:02 -0500
commita9fa21473aede43f456bedcfd412061a908e1788 (patch)
tree1331de6c9102baa7cb0001299d5391725118792d /api
parent29894a583696a6a852dca7188e284cac4efa1923 (diff)
downloadchat-a9fa21473aede43f456bedcfd412061a908e1788.tar.gz
chat-a9fa21473aede43f456bedcfd412061a908e1788.tar.bz2
chat-a9fa21473aede43f456bedcfd412061a908e1788.zip
Fixing cacheing issue on IE and Edge
Diffstat (limited to 'api')
-rw-r--r--api/post.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/api/post.go b/api/post.go
index 6736d75e2..d1b0ae980 100644
--- a/api/post.go
+++ b/api/post.go
@@ -986,5 +986,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()))
}