gcp-cloud-cdn

Generate Google Cloud CDN configurations for Cloud Storage, instance groups, and Cloud Run.

1|Updated Mar 2, 2026
One-click install
npx skills add https://github.com/sitharaj88/claude-skills --skill gcp-cloud-cdn
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gcp-cloud-cdn
Source: https://github.com/sitharaj88/claude-skills/tree/main/skills/gcp-cloud-cdn
Command: npx skills add https://github.com/sitharaj88/claude-skills --skill gcp-cloud-cdn

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps users configure and optimize Google Cloud CDN for efficient content delivery, ensuring faster load times and reduced origin load.

Core Features & Use Cases

  • Configuration Generation: Creates production-ready Cloud CDN configurations for various origins (Cloud Storage, Compute Engine, Cloud Run).
  • Caching Strategy Optimization: Guides users on selecting appropriate cache modes (e.g., CACHE_ALL_STATIC, USE_ORIGIN_HEADERS) and TTL settings.
  • Security Implementation: Assists in setting up signed URLs/cookies and edge security policies.
  • Use Case: You need to set up Cloud CDN for a static website hosted on Cloud Storage, ensuring optimal caching for assets like images, CSS, and JavaScript, and secure access for premium content.

Quick Start

Use the gcp-cloud-cdn skill to generate a Cloud CDN configuration for a Cloud Storage bucket named 'my-static-assets' with a cache mode of CACHE_ALL_STATIC and a default TTL of 1 hour.

Frequently Asked Questions about gcp-cloud-cdn

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure Google Cloud CDN for a Cloud Storage bucket?

Google Cloud CDN supports Cloud Storage, Compute Engine instance groups, and Cloud Run as origins. You can generate configurations for any of these backends using either gcloud CLI commands or Terraform HCL infrastructure as code.

What is the best cache mode for serving static assets with Google Cloud CDN?

The best cache mode for static assets is CACHE_ALL_STATIC, which caches static content automatically based on TTL settings. Alternatively, USE_ORIGIN_HEADERS lets your origin dictate caching behavior through HTTP response headers.

Does Google Cloud CDN support signed URLs and cookies for premium content?

Yes, Google Cloud CDN supports signed URLs and cookies to secure premium content. It also allows you to implement edge security policies and custom response headers to protect your delivery pipeline.

Can I deploy Cloud CDN configurations using Terraform?

Yes, you can deploy Cloud CDN configurations using Terraform HCL for infrastructure as code management. The generated configurations also support gcloud CLI commands for direct command-line deployment.

How does cache invalidation and negative caching work in Google Cloud CDN?

Cache invalidation removes outdated content from edge caches, while negative caching stores error responses like 404s to reduce origin load. Both strategies optimize content delivery and reduce backend latency.