diff --git a/storages/backends/s3boto.py b/storages/backends/s3boto.py index a329a7616..7e3a7ef19 100644 --- a/storages/backends/s3boto.py +++ b/storages/backends/s3boto.py @@ -356,7 +356,7 @@ def _compress_content(self, content): # This means each time a file is compressed it changes even if the other contents don't change # For S3 this defeats detection of changes using MD5 sums on gzipped files # Fixing the mtime at 0.0 at compression time avoids this problem - zfile = GzipFile(mode='wb', compresslevel=6, fileobj=zbuf, mtime=0.0) + zfile = GzipFile(mode='wb', fileobj=zbuf, mtime=0.0) try: zfile.write(force_bytes(content.read())) finally: diff --git a/storages/backends/s3boto3.py b/storages/backends/s3boto3.py index 8c0162e51..eda7b250b 100644 --- a/storages/backends/s3boto3.py +++ b/storages/backends/s3boto3.py @@ -435,7 +435,7 @@ def _compress_content(self, content): # This means each time a file is compressed it changes even if the other contents don't change # For S3 this defeats detection of changes using MD5 sums on gzipped files # Fixing the mtime at 0.0 at compression time avoids this problem - zfile = GzipFile(mode='wb', compresslevel=6, fileobj=zbuf, mtime=0.0) + zfile = GzipFile(mode='wb', fileobj=zbuf, mtime=0.0) try: zfile.write(force_bytes(content.read())) finally: