From 0d3f420e8c587ce5afca7e36afb69a63d8b96c24 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Wed, 12 Aug 2015 20:44:26 -0700 Subject: [PATCH] Set Content-Type correctly. --- Gruntfile.coffee | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Gruntfile.coffee b/Gruntfile.coffee index 9d33bad5d..901f00364 100755 --- a/Gruntfile.coffee +++ b/Gruntfile.coffee @@ -216,10 +216,13 @@ module.exports = (grunt) -> aws: command: """ git checkout gh-pages - aws s3 cp builds s3://<%= pkg.meta.awsBucket %>/builds --recursive --cache-control max-age=600 - aws s3 cp img s3://<%= pkg.meta.awsBucket %>/img --recursive --cache-control max-age=600 - aws s3 cp index.html s3://<%= pkg.meta.awsBucket %> --cache-control max-age=600 - aws s3 cp web.css s3://<%= pkg.meta.awsBucket %> --cache-control max-age=600 + aws s3 cp builds/ s3://<%= pkg.meta.awsBucket %>/builds/ --recursive --exclude "*" --include "*.js" --cache-control "max-age=600" --content-type "application/javascript; charset=utf-8" + aws s3 cp builds/ s3://<%= pkg.meta.awsBucket %>/builds/ --recursive --exclude "*" --include "*.crx" --cache-control "max-age=600" --content-type "application/x-chrome-extension" + aws s3 cp builds/ s3://<%= pkg.meta.awsBucket %>/builds/ --recursive --exclude "*" --include "*.xml" --cache-control "max-age=600" --content-type "text/xml; charset=utf-8" + aws s3 cp builds/ s3://<%= pkg.meta.awsBucket %>/builds/ --recursive --exclude "*" --include "*.zip" --cache-control "max-age=600" --content-type "application/zip" + aws s3 cp img/ s3://<%= pkg.meta.awsBucket %>/img/ --recursive --cache-control "max-age=600" + aws s3 cp index.html s3://<%= pkg.meta.awsBucket %> --cache-control "max-age=600" --content-type "text/html; charset=utf-8" + aws s3 cp web.css s3://<%= pkg.meta.awsBucket %> --cache-control "max-age=600" --content-type "text/css; charset=utf-8" git checkout - """.split('\n').join('&&') npm: