diff options
author | Christopher Speller <crspeller@gmail.com> | 2016-02-11 09:31:39 -0500 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2016-02-11 09:31:39 -0500 |
commit | 590022064abab2b93d47de73e917e75e51f88584 (patch) | |
tree | 0fbbab6b4428f958798ccbe295609677e7d27247 /api | |
parent | 4ffbd3642ed8ad7961218845c7c89108c26a2737 (diff) | |
download | chat-590022064abab2b93d47de73e917e75e51f88584.tar.gz chat-590022064abab2b93d47de73e917e75e51f88584.tar.bz2 chat-590022064abab2b93d47de73e917e75e51f88584.zip |
Fixing cacheing issue on IE for admin console
Diffstat (limited to 'api')
-rw-r--r-- | api/admin.go | 2 |
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)) } |