diff --git a/dist/restore/index.js b/dist/restore/index.js index cbdd5bc..a46c61d 100644 --- a/dist/restore/index.js +++ b/dist/restore/index.js @@ -43366,7 +43366,11 @@ class CacheService { .putObject({ Bucket: this._bucket, Key: path.join(this.getCacheFolder(), key), - Body: data + Body: data, + Metadata: { + ContentType: "text/plain", + ContentEncoding: "gzip" + } }) .promise(); }); diff --git a/dist/save/index.js b/dist/save/index.js index 93f1986..586ab72 100644 --- a/dist/save/index.js +++ b/dist/save/index.js @@ -43366,7 +43366,11 @@ class CacheService { .putObject({ Bucket: this._bucket, Key: path.join(this.getCacheFolder(), key), - Body: data + Body: data, + Metadata: { + ContentType: "text/plain", + ContentEncoding: "gzip" + } }) .promise(); }); diff --git a/package.json b/package.json index 8b95911..ede0ba1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cache", - "version": "0.5.0", + "version": "0.6.0", "private": true, "description": "Cache dependencies and build outputs", "main": "dist/restore/index.js", diff --git a/src/cache.service.ts b/src/cache.service.ts index e5890ce..e76019b 100644 --- a/src/cache.service.ts +++ b/src/cache.service.ts @@ -133,7 +133,11 @@ export class CacheService { .putObject({ Bucket: this._bucket, Key: path.join(this.getCacheFolder(), key), - Body: data + Body: data, + Metadata: { + ContentType: "text/plain", + ContentEncoding: "gzip" + } }) .promise(); }