diff options
author | =Corey Hulen <corey@hulen.com> | 2016-02-11 13:17:27 -0800 |
---|---|---|
committer | =Corey Hulen <corey@hulen.com> | 2016-02-11 13:17:27 -0800 |
commit | 35e3b8c40fcec5516f888ed5ba578e3a94f49257 (patch) | |
tree | ef3b4ff0e4a12aa399bf290523a88b1c3975f3ce /api/context.go | |
parent | ab1f5acf4d573cc1fae4936650d7e2eb07afdb2e (diff) | |
download | chat-35e3b8c40fcec5516f888ed5ba578e3a94f49257.tar.gz chat-35e3b8c40fcec5516f888ed5ba578e3a94f49257.tar.bz2 chat-35e3b8c40fcec5516f888ed5ba578e3a94f49257.zip |
Fixing IE expire issue
Diffstat (limited to 'api/context.go')
-rw-r--r-- | api/context.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/api/context.go b/api/context.go index b91981ecd..d0b4f85d2 100644 --- a/api/context.go +++ b/api/context.go @@ -165,6 +165,10 @@ func (h handler) ServeHTTP(w http.ResponseWriter, r *http.Request) { } else { // All api response bodies will be JSON formatted by default w.Header().Set("Content-Type", "application/json") + + if r.Method == "GET" { + w.Header().Set("Expires", "0") + } } if len(token) != 0 { |