From 54b8668371c2a17d25f143e97fbbd446ad40fccc Mon Sep 17 00:00:00 2001 From: Dan Buch Date: Thu, 25 Jun 2020 14:23:22 -0400 Subject: [PATCH] Add some appropriate cache-control --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 13ab40ff..bf51689a 100644 --- a/Makefile +++ b/Makefile @@ -169,9 +169,11 @@ sync-latest-to-s3: .PHONY: sync-latest-docs-to-s3 sync-latest-docs-to-s3: aws s3 cp --acl bucket-owner-full-control \ + --cache-control max-age=0 \ docs/out/rsconnect_jupyter-$(VERSION).html \ $(S3_PREFIX)/latest/rsconnect_jupyter-latest.html aws s3 cp --acl bucket-owner-full-control \ + --cache-control max-age=0 \ docs/out/rsconnect_jupyter-$(VERSION).pdf \ $(S3_PREFIX)/latest/rsconnect_jupyter-latest.pdf @@ -181,5 +183,6 @@ promote-docs-in-s3: docs/out/rsconnect_jupyter-$(VERSION).html \ s3://docs.rstudio.com/rsconnect-jupyter/rsconnect_jupyter-$(VERSION).html aws s3 cp --acl bucket-owner-full-control \ + --cache-control max-age=300 \ docs/out/rsconnect_jupyter-$(VERSION).html \ s3://docs.rstudio.com/rsconnect-jupyter/index.html