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
1
vote
1 answer

How to use "cdn_cache_id" in the custom response header?

In the docs, I see that "cdn_cache_id" can be used as a header value, but I received an "Invalid header value" error when using it. I tried to apply it using Cloud Shell and UI, but it's the same. Can anyone confirm what really happened here?
1
vote
2 answers

getting too soon Google CDN cache eviction or bug

Im checking CDN hit/miss from cache, using same PC, same client address and requesting same URL: ***Scenario 1 Cache-Control 1day, 1month, 1 year: -Hour 12:00 user1 Request URL it not found, cache filled. -Hour 12:05 user1 Request URL found, cache…
Csar
  • 13
  • 2
1
vote
1 answer

Google Cloud CDN won't cache https pages because they have Vary header x-forwarded-proto

It seems I can't use Google Cloud CDN with GKE Ingress in https requests, because the Ingress controller adds a Vary http header: x-forwarded-proto, which CDN won't cache (see https://cloud.google.com/cdn/docs/caching#non-cacheable_content). I think…
1
vote
2 answers

Google Cloud CDN vary:cookie response never gets cache hit

I'm using Google Cloud CDN to cache an HTML page. I've configured all the correct headers as per the docs, and the page is caching fine. Now, I want to change it so that it only caches when the request has no cookies, i.e. no cookie header set. My…
davnicwil
  • 28,487
  • 16
  • 107
  • 123
1
vote
1 answer

Google storage bucket (google api link) integration with Cloud CDN

Respected seniors! I have hosted a website on GCE and storing all static content on GCS bucket. The content is then accessed using google API link e.g https://storage.googleapis.com/[BUCKET_NAME]/[OBJECT_NAME]... Now the API link is embedded on…
1
vote
2 answers

Google Cloud Storage vs Google Cloud CDN

I have several video content that I share through my Google Cloud Storage through my Django Google App Engine Application with signed url mechanism associated with an expiration time. def get_signed_url(self, entity): blob =…
1
vote
2 answers

Google Cloud CDN signedurl using URLPrefix

I can't get a signed URL working with a URLPrefix for Google Cload CDN. I've setup a bucket which is a backend bucket to my Cloud CDN instance. I've successfully setup a URL signing key and have produced a working signed URL for a specific path all…
Robert Field
  • 321
  • 5
  • 16
1
vote
1 answer

How can I use Google Cloud CDN for static website hosted on Google App Engine?

I am serving a super simple static website on Google App Engine. I chose the Zurich location which serves content pretty decently within all locations that I tested within Europe. Speed tests that I did online show <1s page load speeds within…
SCBuergel
  • 1,613
  • 16
  • 26
1
vote
1 answer

CDN for Google Cloud Functions - Configuring Endpoints with openapi-functions.yaml

Following the Getting Started guide for https://cloud.google.com/endpoints/docs/openapi/get-started-cloud-functions to get my Cloud Function behind a CDN. Deployed ESPv2 Beta to Cloud Run and got a provisioned CloudRun Service URL. Now I'm hitting a…
1
vote
1 answer

Google cloud CDN backend service load balancer not caching any resources

We have a requirement to generate images on the fly and cache using CDN. For this we have configured a backend service with a load balancer enabled cloud CDN. We are using Nginx proxy server. We have added headers specified in the Google cloud CDN…
Adarsh D
  • 21
  • 4
1
vote
0 answers

Stitching Cloud Run microservices into single API gateway

I have my services split into Cloud Run services, say e.g. in a blog application I have user, post and comment services. For each service I get a separate http endpoint on deploy, but what I want is to have api.mydomain.com act as a gateway for…
1
vote
1 answer

How to connect Google Cloud CDN to the Cloud Run for Anthos default setup?

Have a Cloud Run for Anthos set up with default configuration, istio-ingress as a gateway and couple of services. Cannot find any docs on how to connect Cloud CDN with this setup. Does anybody have some experience with that?
1
vote
2 answers

Google Cloud CDN cannot access file with white space from GCS backend service

I had been using Google Cloud CDN for caching content from a GCS bucket for months. Until yesterday (2019/09/19), I noticed that I cannot access an object with white spaces in its name. Usually, I apply encodeURIComponent to the object's name before…
1
vote
1 answer

How to configure firebase cdn / caching in Vue.js app?

I have developed my project using vue.js webpack template. I want to configure firebse cdn/caching. But have no idea what to do.. I have gone through the document https://firebase.google.com/docs/hosting/manage-cache And found…
Supritha
  • 45
  • 8
1
vote
2 answers

How to filter inbound traffic for GCP CDN?

I have a very basic question about cdn service in gcp. I need to allow just some ips in inbound and deny all the other traffic. How I can achieve this feature? just to know, the cdn will use a backend bucket service. I've already tried gcp armor…