QuestionQ47

VerifiedConfiguring managed network services

You want Cloud CDN to serve the static image file https://www.example.com/images/spacetime.png, which is hosted in a private Cloud Storage bucket. You are using the USE_ORIGIN_HEADERS cache mode. When you open the file in your browser, you receive an HTTP 403 error, and the HTTP response includes the header Cache-Control: private, max-age=0.

How should you fix this issue?

Explanation

USE_ORIGIN_HEADERS honors the origin's caching directives, and Cache-Control: private prevents Cloud CDN from caching the object. Requests therefore continue to reach the private Cloud Storage origin, which returns 403. FORCE_CACHE_ALL caches successful responses while overriding private and no-store directives; it is appropriate for a backend containing static Cloud Storage content.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!