Skip to content

Commit

Permalink
Merge pull request #272 from rstudio/mbh-cache-control-moar
Browse files Browse the repository at this point in the history
Add some appropriate cache-control
  • Loading branch information
meatballhat authored Jun 25, 2020
2 parents f39153b + 54b8668 commit 751f0ca
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 751f0ca

Please sign in to comment.