mirror of
https://github.com/tenox7/wrp.git
synced 2025-04-18 11:37:32 +00:00
remove cache control
This commit is contained in:
parent
8cec22eb90
commit
26b3c21aa7
4
txt.go
4
txt.go
@ -171,10 +171,6 @@ func imgServerZ(w http.ResponseWriter, r *http.Request) {
|
||||
imgStor.del(id)
|
||||
w.Header().Set("Content-Type", "image/gif")
|
||||
w.Header().Set("Content-Length", strconv.Itoa(len(img)))
|
||||
// TODO: we may want to let the client browser cache images
|
||||
w.Header().Set("Cache-Control", "max-age=0")
|
||||
w.Header().Set("Expires", "-1")
|
||||
w.Header().Set("Pragma", "no-cache")
|
||||
w.Write(img)
|
||||
w.(http.Flusher).Flush()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user