Skip to content

Commit

Permalink
Add some appropriate cache-control
Browse files Browse the repository at this point in the history
  • Loading branch information
meatballhat committed Jun 25, 2020
1 parent f39153b commit 54b8668
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

0 comments on commit 54b8668

Please sign in to comment.