When to Use
User wants to set up, optimize, or debug a CDN. Covers provider selection, caching, security, and performance monitoring.
Quick Reference
| Topic |
File |
| Provider comparison & CLIs |
providers.md |
| Security hardening |
security.md |
| Caching strategies |
caching.md |
| Troubleshooting |
troubleshooting.md |
Core Capabilities
- Provider selection — Compare Cloudflare, CloudFront, Bunny, Fastly based on use case, traffic, budget
- Cache configuration — Set optimal cache-control headers, TTLs, cache keys
- Security setup — SSL/TLS, WAF rules, DDoS protection, origin shielding
- Performance monitoring — Cache hit ratios, TTFB, regional latency
- Invalidation — Purge strategies, CI/CD integration, tagged invalidation
- Cost optimization — Bandwidth analysis, tier recommendations, multi-CDN strategies
- Troubleshooting — Debug cache misses, stale content, origin overload
Cache-Control Checklist
Before deploying, verify:
Security Checklist
Common Mistakes
- Caching user-specific responses (auth tokens, personalized content)
- Using
max-age without immutable for versioned assets
- Purging entire cache instead of targeted paths
- Ignoring
Vary headers (cache poisoning risk)
- Origin not rejecting direct access (bypassing CDN protections)
Decision: Do I Need a CDN?
Ask about:
- Geographic distribution of users
- Current page load times and Core Web Vitals
- Static vs dynamic content ratio
- Traffic volume and patterns
If users are mostly local and traffic is low → CDN may add complexity without benefit.
If global users OR heavy static assets OR need DDoS protection → CDN adds value.
1---2name: configure-optimize-troubleshoot-cdn3description: "Configure, optimize, and troubleshoot CDN deployments with caching strategies, security hardening, and multi-provider management."4category: "Community"5author: community6version: "1.0.1"7icon: puzzle8metadata:9 source: https://skillmd.com/skills/rondoflow/configure-optimize-troubleshoot-cdn10---1112## When to Use1314User wants to set up, optimize, or debug a CDN. Covers provider selection, caching, security, and performance monitoring.1516## Quick Reference1718| Topic | File |19|-------|------|20| Provider comparison & CLIs | `providers.md` |21| Security hardening | `security.md` |22| Caching strategies | `caching.md` |23| Troubleshooting | `troubleshooting.md` |2425## Core Capabilities26271. **Provider selection** — Compare Cloudflare, CloudFront, Bunny, Fastly based on use case, traffic, budget282. **Cache configuration** — Set optimal cache-control headers, TTLs, cache keys293. **Security setup** — SSL/TLS, WAF rules, DDoS protection, origin shielding304. **Performance monitoring** — Cache hit ratios, TTFB, regional latency315. **Invalidation** — Purge strategies, CI/CD integration, tagged invalidation326. **Cost optimization** — Bandwidth analysis, tier recommendations, multi-CDN strategies337. **Troubleshooting** — Debug cache misses, stale content, origin overload3435## Cache-Control Checklist3637Before deploying, verify:38- [ ] Hashed assets (JS/CSS) → `Cache-Control: public, max-age=31536000, immutable`39- [ ] HTML pages → Short TTL or `no-cache` with revalidation40- [ ] Images → Long TTL with content-based URLs or versioning41- [ ] API responses → Usually `no-store` unless explicitly cacheable42- [ ] User-specific content → `private` or `no-store`4344## Security Checklist4546- [ ] TLS 1.2+ enforced, weak ciphers disabled47- [ ] HSTS enabled with appropriate max-age48- [ ] Origin IPs hidden, authenticated origin pulls configured49- [ ] Rate limiting on sensitive endpoints (login, API)50- [ ] Security headers: CSP, X-Frame-Options, X-Content-Type-Options5152## Common Mistakes5354- Caching user-specific responses (auth tokens, personalized content)55- Using `max-age` without `immutable` for versioned assets56- Purging entire cache instead of targeted paths57- Ignoring `Vary` headers (cache poisoning risk)58- Origin not rejecting direct access (bypassing CDN protections)5960## Decision: Do I Need a CDN?6162Ask about:63- Geographic distribution of users64- Current page load times and Core Web Vitals65- Static vs dynamic content ratio66- Traffic volume and patterns6768If users are mostly local and traffic is low → CDN may add complexity without benefit.69If global users OR heavy static assets OR need DDoS protection → CDN adds value.