Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CDN policy for web backend: cache_mode = "USE_ORIGIN_HEADERS" #11

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

lukehutch
Copy link
Contributor

This is needed for serverpod/serverpod#2539 to properly work.

@lukehutch
Copy link
Contributor Author

lukehutch commented Jul 26, 2024

Argh, this gives this error:

Error updating BackendService "projects/clicksocial-app/global/backendServices/serverpod-production-backend-web": googleapi: Error 400: Invalid value for field 'resource.cdnPolicy.defaultTtl': '3600'. default_ttl cannot be specified with USE_ORIGIN_HEADERS cache_mode., invalid

Which was supposed to have been fixed, but doesn't appear to have been

hashicorp/terraform-provider-google#10622
GoogleCloudPlatform/magic-modules#7588

I filed an issue about this...

hashicorp/terraform-provider-google#18860

For now, I had to disable the CDN entirely on the web frontend to fix the caching issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants