Skip to content

Instantly share code, notes, and snippets.

@rduque1
Last active December 2, 2018 16:04
Show Gist options
  • Save rduque1/9aa7709c7562ce25a31f2f6e5ea94260 to your computer and use it in GitHub Desktop.
Save rduque1/9aa7709c7562ce25a31f2f6e5ea94260 to your computer and use it in GitHub Desktop.
s3 maxage
aws s3 cp \
--metadata-directive REPLACE \
--cache-control max-age=1,s-maxage=1 \
./index.html \
s3://bucket/dist/index.html
aws s3 sync \
--metadata-directive REPLACE \
--cache-control max-age=1,s-maxage=1 \
./index.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment