diff --git a/internal/io/dataway/flush.go b/internal/io/dataway/flush.go index 6cc638d1e1..0b24162d07 100644 --- a/internal/io/dataway/flush.go +++ b/internal/io/dataway/flush.go @@ -160,7 +160,7 @@ func (dw *Dataway) doFlush(w *writer, b *body, opts ...WriteOption) error { } isGzip := "F" - if dw.GZip { + if dw.GZip && !w.cacheClean { // under cacheClean, all body has been gzipped during previous POST var ( zstart = time.Now() gz = getZipper()