From a9fa21473aede43f456bedcfd412061a908e1788 Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Fri, 11 Dec 2015 14:19:49 -0500 Subject: Fixing cacheing issue on IE and Edge --- api/post.go | 2 ++ 1 file changed, 2 insertions(+) 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())) } -- cgit v1.2.3-1-g7c22