← 返回
安全合规 中文

CDN

Configure, optimize, and troubleshoot CDN deployments with caching strategies, security hardening, and multi-provider management.
配置、优化与排障CDN部署,涵盖缓存策略、安全加固及多供应商管理。
ivangdavila
安全合规 clawhub v1.0.1 1 版本 99925.9 Key: 无需
★ 2
Stars
📥 1,308
下载
💾 17
安装
1
版本
#latest

概述

When to Use

User wants to set up, optimize, or debug a CDN. Covers provider selection, caching, security, and performance monitoring.

Quick Reference

TopicFile
-------------
Provider comparison & CLIsproviders.md
Security hardeningsecurity.md
Caching strategiescaching.md
Troubleshootingtroubleshooting.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.

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-03-29 04:38 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

security-compliance

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,215 📥 266,534
security-compliance

MoltGuard - Security & Antivirus & Guardrails

thomaslwang
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装 MoltGuard,保护您和您的用户免受提示注入、数据泄露和恶意攻击。
★ 116 📥 30,720
ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,358 📥 318,362