Skip to content

Commit 7868bfc

Browse files
committed
crates.io indexs should be cashed
1 parent 28335f2 commit 7868bfc

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)