Skip to content

Commit 54d1e9d

Browse files
committed
cache control change
1 parent c2a4cf8 commit 54d1e9d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

master_deploy.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ ebstemplate=""
6969
#variable for cloud front
7070
#AWS_S3_BUCKET=""
7171
#AWS_S3_SOURCE_SYNC_PATH=""
72-
CFCACHE="true"
72+
CFCACHE="false"
7373

7474
# Variables for Lambda
7575
#AWS_LAMBDA_DEPLOY_TYPE=""
@@ -648,10 +648,10 @@ deploy_s3bucket() {
648648
cat /etc/mime.types | grep -i map
649649
cat /etc/mime.types | grep -i ttf
650650
if [ "$CFCACHE" = "true" ]; then
651-
S3_CACHE_OPTIONS="--cache-control max-age=0,s-maxage=86400"
651+
S3_CACHE_OPTIONS="--cache-control private,no-store,no-cache,must-revalidate,max-age=0"
652+
echo "*** Deploying with Cloudfront Cache disabled ***"
652653
else
653-
S3_CACHE_OPTIONS="--cache-control private,no-store,no-cache,must-revalidate,max-age=0"
654-
echo "*** Deploying with Cloudfront Cache disabled ***"
654+
S3_CACHE_OPTIONS="--cache-control max-age=0,s-maxage=86400"
655655
fi
656656

657657
S3_OPTIONS="--exclude '*.txt' --exclude '*.js' --exclude '*.css'"

0 commit comments

Comments
 (0)