Merge pull request #2611 from alphagov/set-s3-cache-headers

Set far-future cache headers on S3 assets
This commit is contained in:
Chris Hill-Scott
2018-12-21 12:34:48 +00:00
committed by GitHub

View File

@@ -99,7 +99,7 @@ upload-paas-artifact:
.PHONY: upload-static ## Upload the static files to be served from S3
upload-static:
aws s3 cp --region eu-west-1 --recursive ./app/static s3://${DNS_NAME}-static
aws s3 cp --region eu-west-1 --recursive --cache-control max-age=315360000,immutable ./app/static s3://${DNS_NAME}-static
.PHONY: test
test: venv ## Run tests