alejandr0angul0.dev/config/production/deployment.toml.sample
2021-12-31 11:34:37 -08:00

22 lines
458 B
Plaintext

order = [".jpg$", ".gif$"]
[[targets]]
name = "aws-s3"
URL = "{{S3URL}}"
cloudFrontDistributionID = "{{CLOUDFRONTDISTRIBUTIONID}}"
[[matchers]]
# Cache static assets for 1 year.
pattern = "^.+\\.(js|css|svg|ttf)$"
cacheControl = "max-age=31536000, no-transform, public"
gzip = true
[[matchers]]
pattern = "^.+\\.(png|jpg)$"
cacheControl = "max-age=31536000, no-transform, public"
gzip = false
[[matchers]]
pattern = "^.+\\.(html|xml|json)$"
gzip = true