diff options
| author | pg9182 <96569817+pg9182@users.noreply.github.com> | 2022-10-13 15:24:29 -0400 |
|---|---|---|
| committer | pg9182 <96569817+pg9182@users.noreply.github.com> | 2022-10-13 15:24:29 -0400 |
| commit | 4b31afcc06b2ba549c1b816602f2ab8868dec0aa (patch) | |
| tree | f6156d273e9ec437d580599eae078a19e709d26f /pkg/api/api0 | |
| parent | fd6b3eff1a70b5eaee1b51de8f3d2906117b8eb7 (diff) | |
| download | Atlas-4b31afcc06b2ba549c1b816602f2ab8868dec0aa.tar.gz Atlas-4b31afcc06b2ba549c1b816602f2ab8868dec0aa.zip | |
pkg/api/api0: Clear ETag when gzipping responses
Diffstat (limited to 'pkg/api/api0')
| -rw-r--r-- | pkg/api/api0/api.go | 1 |
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 } |
