diff --git a/src/storage/protocols/s3/s3-handler.ts b/src/storage/protocols/s3/s3-handler.ts index 62efbde4c..9d2fdbc70 100644 --- a/src/storage/protocols/s3/s3-handler.ts +++ b/src/storage/protocols/s3/s3-handler.ts @@ -977,6 +977,12 @@ export class S3ProtocolHandler { headers['expires'] = command.ResponseExpires.toUTCString() } + if (headers['cache-control']) { + headers['cache-control'] += ', no-transform' + } else { + headers['cache-control'] = 'no-transform' + } + return { headers, responseBody: response.body,