summaryrefslogtreecommitdiffstats
path: root/api/admin.go
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2016-02-11 09:31:39 -0500
committerChristopher Speller <crspeller@gmail.com>2016-02-11 09:31:39 -0500
commit590022064abab2b93d47de73e917e75e51f88584 (patch)
tree0fbbab6b4428f958798ccbe295609677e7d27247 /api/admin.go
parent4ffbd3642ed8ad7961218845c7c89108c26a2737 (diff)
downloadchat-590022064abab2b93d47de73e917e75e51f88584.tar.gz
chat-590022064abab2b93d47de73e917e75e51f88584.tar.bz2
chat-590022064abab2b93d47de73e917e75e51f88584.zip
Fixing cacheing issue on IE for admin console
Diffstat (limited to 'api/admin.go')
-rw-r--r--api/admin.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/api/admin.go b/api/admin.go
index e8cb8b3c7..5a645dc97 100644
--- a/api/admin.go
+++ b/api/admin.go
@@ -120,6 +120,8 @@ func getConfig(c *Context, w http.ResponseWriter, r *http.Request) {
cfg := model.ConfigFromJson(strings.NewReader(json))
json = cfg.ToJson()
+ w.Header().Set("Cache-Control", "no-cache, no-store, must-revalidate")
+ w.Header().Set("Expires", "0")
w.Write([]byte(json))
}