From 23c622d3aa095ec01203156e6483e5b9d6dd8824 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Wed, 12 Aug 2015 04:24:59 -0700 Subject: [PATCH] Add cache-control headers for AWS. --- Gruntfile.coffee | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Gruntfile.coffee b/Gruntfile.coffee index 1a9de374b..93eaeea18 100755 --- a/Gruntfile.coffee +++ b/Gruntfile.coffee @@ -216,10 +216,10 @@ module.exports = (grunt) -> aws: command: """ git checkout gh-pages - aws s3 cp builds s3://<%= pkg.meta.awsBucket %>/builds --recursive - aws s3 cp img s3://<%= pkg.meta.awsBucket %>/img --recursive - aws s3 cp index.html s3://<%= pkg.meta.awsBucket %> - aws s3 cp web.css s3://<%= pkg.meta.awsBucket %> + 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 git checkout - """.split('\n').join('&&') npm: