Skip to content

Commit

Permalink
Merge pull request #17 from habr-mms/hotfix_frontdoor_caching
Browse files Browse the repository at this point in the history
Hotfix for caching in cdn_froontdoor_route
  • Loading branch information
michaelamattes authored Oct 19, 2023
2 parents e0cf07e + b0beeab commit 78c600d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ resource "azurerm_cdn_frontdoor_route" "cdn_frontdoor_route" {
link_to_default_domain = local.cdn_frontdoor_route[each.key].link_to_default_domain

dynamic "cache" {
for_each = length(compact(values(local.cdn_frontdoor_route[each.key].cache))) > 0 ? [0] : []
for_each = length(compact(flatten(values(local.cdn_frontdoor_route[each.key].cache)))) > 0 ? [0] : []

content {
query_string_caching_behavior = local.cdn_frontdoor_route[each.key].cache.query_string_caching_behavior
Expand Down

0 comments on commit 78c600d

Please sign in to comment.