From 41ca1ccebc201b7b6fbdd1d2959ae34bae6996f1 Mon Sep 17 00:00:00 2001 From: Seth Vargo Date: Thu, 9 Feb 2017 14:39:51 -0500 Subject: [PATCH] Cache assets longer --- website/scripts/deploy.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/website/scripts/deploy.sh b/website/scripts/deploy.sh index 05ea1af0b..1d8141a6a 100755 --- a/website/scripts/deploy.sh +++ b/website/scripts/deploy.sh @@ -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 \ @@ -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 \ @@ -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 \