Skip to content

Commit

Permalink
Merge pull request #2298 from hashicorp/sethvargo-patch-1
Browse files Browse the repository at this point in the history
Change cache to 4h
  • Loading branch information
sethvargo committed Feb 9, 2017
2 parents a703bcf + a10a0a4 commit a16709e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion website/scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ if [ -z "$NO_UPLOAD" ]; then
--no-mime-magic \
--acl-public \
--recursive \
--add-header="Cache-Control: max-age=31536000" \
--add-header="Cache-Control: max-age=14400" \
--add-header="x-amz-meta-surrogate-key: site-$PROJECT" \
sync "$DIR/build/" "s3://hc-sites/$PROJECT/latest/"

Expand All @@ -64,6 +64,7 @@ if [ -z "$NO_UPLOAD" ]; then
echo "Overriding javascript mime-types..."
s3cmd \
--mime-type="application/javascript" \
--add-header="Cache-Control: max-age=31536000" \
--exclude "*" \
--include "*.js" \
--recursive \
Expand All @@ -72,6 +73,7 @@ if [ -z "$NO_UPLOAD" ]; then
echo "Overriding css mime-types..."
s3cmd \
--mime-type="text/css" \
--add-header="Cache-Control: max-age=31536000" \
--exclude "*" \
--include "*.css" \
--recursive \
Expand All @@ -80,6 +82,7 @@ if [ -z "$NO_UPLOAD" ]; then
echo "Overriding svg mime-types..."
s3cmd \
--mime-type="image/svg+xml" \
--add-header="Cache-Control: max-age=31536000" \
--exclude "*" \
--include "*.svg" \
--recursive \
Expand Down

0 comments on commit a16709e

Please sign in to comment.