【问题标题】:What is the syntax for headers in aws_cloudfront_distribution forwarded_values (Terraform)?aws_cloudfront_distribution forwarded_values (Terraform) 中标头的语法是什么?
【发布时间】:2021-01-04 03:26:21
【问题描述】:

doc 没有显示示例,所以我不清楚。应该如何正确?

resource "aws_cloudfront_distribution" "this" {
  ...
  default_cache_behavior {
    max_ttl = 86400

    forwarded_values {
      # which option?
      headers      = ["Cache-Control max-age"]
      headers      = ["Cache-Control: max-age"]        
      headers      = ["Cache-Control-max-age"]
      headers      = ["something else?"]
      ....

【问题讨论】:

    标签: caching terraform amazon-cloudfront terraform-provider-aws


    【解决方案1】:

    标头Cache-Control: max-age=86400 具有键:Cache-Control 和值:max-age=86400。您只需要使用名称Cache-Control,而不使用max-age 部分。

    【讨论】:

      猜你喜欢
      • 2014-01-20
      • 2020-06-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-06-07
      • 2018-09-06
      • 1970-01-01
      相关资源
      最近更新 更多