Skip to content

Instantly share code, notes, and snippets.

@ndarville
Last active January 11, 2016 10:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ndarville/2f34c1a7e6190cb95418 to your computer and use it in GitHub Desktop.
Save ndarville/2f34c1a7e6190cb95418 to your computer and use it in GitHub Desktop.
s3_website.yml
max_age:
"*.csv": <%= 60 * 30 %>
"*.tsv": <%= 60 * 30 %>
"*.json": <%= 60 * 30 %>
"*": <%= 60 * 5 %>
gzip: true
gzip:
- .html
- .css
- .js
- .csv
- .tsv
- .json
cloudfront_distribution_config:
default_cache_behavior:
"min_TTL": <%= 60 * 60 * 24 %>
max_age:
"*.csv": <%= 60 * 30 %>
"*.tsv": <%= 60 * 30 %>
"*.json": <%= 60 * 30 %>
"*": <%= 60 * 5 %>
gzip: true
gzip:
- .txt
- .html
- .xml
- .scss
- .css
- .js
- .jsx
- .csv
- .tsv
- .json
- .yml
- .yaml
- .jpg
- .jpeg
- .png
- .webm
- .mp4
- .ogg
- .gif
- .eot
- .ttf
- .woff2
- .svg
- .woff
- .ico
cloudfront_distribution_config:
default_cache_behavior:
"min_TTL": <%= 60 * 60 * 24 %>
s3_reduced_redundancy: false
##https://github.com/laurilehmijoki/s3_website/issues/126
# s3_endpoint: eu-central-1
# ignore_on_server: ""
exclude_from_upload:
- .git/ # Might not work
- \.gitignore
# - .*
# - test/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment