diff --git a/package.json b/package.json index 21ded78..13e7f9b 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,7 @@ "newrelic": "1.5.5", "node-statsd": "0.0.7", "nunjucks": "0.1.9", + "request": "^2.64.0", "uuid": "1.4.1", "webmaker-auth": "0.1.4" }, diff --git a/scripts/export_to_s3.js b/scripts/export_to_s3.js index 2a772e3..ed6f807 100644 --- a/scripts/export_to_s3.js +++ b/scripts/export_to_s3.js @@ -162,7 +162,9 @@ function outputToS3(callback) { s3.putObject({ Bucket: bucket, Key: username + '/makes.json', - Body: JSON.stringify(makes) + Body: new Buffer(JSON.stringify(makes), 'utf8'), + ContentType: 'application/json; charset=utf-8', + CacheControl: 'public, max-age=86400' }, callback); }