Skip to content

Commit 552127d

Browse files
authored
Merge pull request #102 from Eh2406/master
crates.io indexes should be cached
2 parents 28335f2 + 7868bfc commit 552127d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

terraform/crates-io/impl/cloudfront-index.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ resource "aws_cloudfront_distribution" "index" {
2222
compress = true
2323
viewer_protocol_policy = "redirect-to-https"
2424

25+
default_ttl = 60
26+
min_ttl = 1
27+
max_ttl = 31536000
28+
2529
forwarded_values {
2630
headers = [
2731
// Following the spec, AWS S3 only replies with the CORS headers when

0 commit comments

Comments
 (0)