aboutsummaryrefslogtreecommitdiff
path: root/pkg/api/api0
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/api/api0')
-rw-r--r--pkg/api/api0/api.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/api/api0/api.go b/pkg/api/api0/api.go
index 632c6e8..33207a1 100644
--- a/pkg/api/api0/api.go
+++ b/pkg/api/api0/api.go
@@ -89,6 +89,7 @@ func respMaybeCompress(w http.ResponseWriter, r *http.Request, status int, buf [
if cbuf.Len() < int(float64(len(buf))*0.8) {
buf = cbuf.Bytes()
w.Header().Set("Content-Encoding", "gzip")
+ w.Header().Del("ETag") // to avoid breaking caching proxies since ETag must be unique if Content-Encoding is different
}
break
}