Questions tagged [google-cloud-cdn]

This tag should be used for questions regarding Google Cloud CDN, part of Google Cloud Platform.

This tag should be used for questions regarding Google Cloud CDN, part of Google Cloud Platform.

154 questions
0
votes
1 answer

Cookie logging in access logs with Google Cloud CDN/Load Balancer

We are trying to move one of our sites from AWS to GCP. We have a site that currently sits on AWS, with Cloudfront backed by Application Load balancer as its origin. AWS does provide an option to log cookies in access logs, which we are using in…
0
votes
2 answers

GCP Cloud CDN cache invalidation taking too long

I have a simple load balancer setup in GCP with two routing rules, /api/* which redirect requests to the backend service (managed by cloud Run) /* which redirects all other requests to a static website hosted in a cloud storage bucket, which…
0
votes
1 answer

Getting `signed_request_invalid_format` when trying to access GCP bucket content via Cloud CDN

I am using signed cookies, to access some restricted files stored in GCP bucket via Cloud CDN. I am using the below function to sign the cookie: signCookie(urlPrefix: string, keyName: string, key: string, expires: number) { // Base64url encode…
Charchit Kapoor
  • 8,934
  • 2
  • 8
  • 24
0
votes
2 answers

Signed URL for private buckets with CDN on Google Cloud don't work

I'm trying to read a private bucket file with a CDN applied via a signed URL. I created two private buckets. a-bucket b-bucket And to apply CDN to these buckets, I created a load balancer and added two backends to this load…
0
votes
0 answers

502 error when updating website or uploading large files

Maybe my setup is considered overkill for a single VM but I prefer it this way to have it behind a load balancer. Whenever any attempts to update large quantity of files or update several plugins at a time, it will produce a 502 error from the…
0
votes
1 answer

GCP multi-region bucket egress

If i have a multi-region bucket and if data is read from VM instances, does it count as egress? Example- VM instance located in us-west-1 & bucket is configured with US as multi-region. Second scenario is egress from US multi-region bucket to…
0
votes
1 answer

exclude specific css file on Google Cloud CDN

Is a WordPress setup. I need to work on a css stylesheet but the changes do not reflect immediately. It will sometime reload the previous version too. How can I exclude a specific css file from caching while doing development work? There is no…
0
votes
2 answers

Cache JSON for 1 second with Google CDN to reduce server load

I'm looking for a solution to reduce server load on my API. I thought it's a good idea to cache the content for 1 second, so the server will get only 1 requests each second instead of many. However, I wasn't able to make it work: In Use origin…
DaWe
  • 1,422
  • 16
  • 26
0
votes
2 answers

GCP Cloud CDN will not compress content when set to "Automatic"

GCP Cloud CDN does not compress any responses when the strategy for compression is set to AUTOMATIC (as it should per the docs) (UI of the CDN in question). No compression takes place, and no content-encoding header is sent, even tho an…
0
votes
0 answers

Can you insert a mapping layer between the URL and Google Cloud CDN?

I am reading about Google Cloud CDN, and in that article it says it needs 4 services (I am new to Google Cloud architecture): Cloud DNS: Safely look past the obnoxious inclusion of the word "Cloud" here (Google marketing be damned). This "service"…
Lance
  • 75,200
  • 93
  • 289
  • 503
0
votes
1 answer

GCP - can we create service account for Load Balancer / CDN?

I have a Storage Bucket in GCP with a bunch of html files and images (just for testing purposes). Let's call this my-bucket. I would like this to expose this via Cloud CDN. I was able to create a Cloud CDN for the bucket. Cloud CDN also created a…
RamPrakash
  • 2,218
  • 3
  • 25
  • 54
0
votes
3 answers

Firebase storage access rules have private cache control

I'm trying to add a Cloud CDN to my firebase storage bucket and I'm running into issues with the images being served by my bucket having a cache-control. I have the following very broad firebase rule: rules_version = '2'; service firebase.storage { …
Paymahn Moghadasian
  • 9,301
  • 13
  • 56
  • 94
0
votes
1 answer

Create an external load balancer to Cloud CDN with Cloud Functions

I try configure my Google Cloud Functions by using CDN. I try use this tutorial: https://cloud.google.com/cdn/docs/setting-up-cdn-with-serverless With one function as Backend Endpoint looks all good, and if I open Load Balancing Frontend IP I see…
0
votes
2 answers

how to enable google cdn dynamic compression?

Google's documentation mentions that cdn can enable dynamic compression, and an example is provided below, but I can't successfully set the dynamic compression strategy document document link The error I see when I execute the command is as follows,…
txyh
  • 33
  • 2
0
votes
1 answer

Is there a way to use Cloud CDN(backend bucket) with "GKE ingress"?

Is it possible to setup cloud CDN storageBucket as ingress backend in 1.21.5-gke.1302? I was trying : apiVersion: networking.k8s.io/v1beta1 kind: Ingress metadata: name: test-ingress namespace: test-namespace annotations: …