返回顶部
C

CDN

Configure, optimize, and troubleshoot CDN deployments with caching strategies, security hardening, and multi-provider management.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.1
安全检测
已通过
758
下载量
2
收藏
概述
安装方式
版本历史

CDN

## 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 1. **Provider selection** — Compare Cloudflare, CloudFront, Bunny, Fastly based on use case, traffic, budget 2. **Cache configuration** — Set optimal cache-control headers, TTLs, cache keys 3. **Security setup** — SSL/TLS, WAF rules, DDoS protection, origin shielding 4. **Performance monitoring** — Cache hit ratios, TTFB, regional latency 5. **Invalidation** — Purge strategies, CI/CD integration, tagged invalidation 6. **Cost optimization** — Bandwidth analysis, tier recommendations, multi-CDN strategies 7. **Troubleshooting** — Debug cache misses, stale content, origin overload ## Cache-Control Checklist Before deploying, verify: - [ ] Hashed assets (JS/CSS) → `Cache-Control: public, max-age=31536000, immutable` - [ ] HTML pages → Short TTL or `no-cache` with revalidation - [ ] Images → Long TTL with content-based URLs or versioning - [ ] API responses → Usually `no-store` unless explicitly cacheable - [ ] User-specific content → `private` or `no-store` ## Security Checklist - [ ] TLS 1.2+ enforced, weak ciphers disabled - [ ] HSTS enabled with appropriate max-age - [ ] Origin IPs hidden, authenticated origin pulls configured - [ ] Rate limiting on sensitive endpoints (login, API) - [ ] Security headers: CSP, X-Frame-Options, X-Content-Type-Options ## 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.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 cdn-1776419963 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 cdn-1776419963 技能

通过命令行安装

skillhub install cdn-1776419963

下载 Zip 包

⬇ 下载 CDN v1.0.1

文件大小: 8.18 KB | 发布时间: 2026-4-17 19:28

v1.0.1 最新 2026-4-17 19:28
Add providers, security, caching, troubleshooting guides

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部