Skip to content

Commit

Permalink
chore: add authorization header to api cache key
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacasonato committed Mar 4, 2024
1 parent ced5454 commit f25420b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions terraform/cloud_run_api.tf
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ resource "google_compute_backend_service" "registry_api" {
cache_mode = "USE_ORIGIN_HEADERS"
cache_key_policy {
include_query_string = true
include_http_headers = ["authorization"]
}
serve_while_stale = 600 # 10 minutes
default_ttl = 0
Expand Down

0 comments on commit f25420b

Please sign in to comment.