caching-cdn-strategy-planner — how to use caching-cdn-strategy-planner how to use caching-cdn-strategy-planner, caching-cdn-strategy-planner setup guide, caching-cdn-strategy-planner vs CloudFlare, what is caching-cdn-strategy-planner, caching-cdn-strategy-planner install, caching-cdn-strategy-planner alternative, CloudFront configuration with caching-cdn-strategy-planner, caching-cdn-strategy-planner for AI agents, caching-cdn-strategy-planner best practices

v1.0.0
GitHub

About this Skill

Perfect for Cloud Optimization Agents needing advanced caching and CDN configuration capabilities. caching-cdn-strategy-planner is a skill that enables the design of effective caching strategies across multiple layers, including client, CDN, server cache, and database.

Features

Designs caching layers from Client to Database
Supports CDN configuration using CloudFront
Optimizes server cache for better performance
Configures DefaultCacheBehavior with ViewerProtocolPolicy
Sets custom headers for CDN origins
Uses TypeScript for configuration

# Core Topics

nasher721 nasher721
[0]
[0]
Updated: 3/9/2026

Quality Score

Top 5%
51
Excellent
Based on code quality & docs
Installation
SYS Universal Install (Auto-Detect)
> npx killer-skills add nasher721/remix-of-remix-of-round-robin-notes/caching-cdn-strategy-planner
Supports 18+ Platforms
Cursor
Windsurf
VS Code
Trae
Claude
OpenClaw
+12 more

Agent Capability Analysis

The caching-cdn-strategy-planner MCP Server by nasher721 is an open-source Community integration for Claude and other AI agents, enabling seamless task automation and capability expansion. Optimized for how to use caching-cdn-strategy-planner, caching-cdn-strategy-planner setup guide, caching-cdn-strategy-planner vs CloudFlare.

Ideal Agent Persona

Perfect for Cloud Optimization Agents needing advanced caching and CDN configuration capabilities.

Core Value

Empowers agents to design effective caching at all layers, from client to database, using CloudFront for CDN configuration and optimizing server cache performance with ViewerProtocolPolicy and CustomHeaders.

Capabilities Granted for caching-cdn-strategy-planner MCP Server

Configuring CloudFront distributions with custom headers and origins
Optimizing server cache performance for improved latency and throughput
Designing multi-layer caching strategies for enhanced application performance

! Prerequisites & Limits

  • Requires AWS CloudFront configuration knowledge
  • Limited to CloudFront CDN configuration
  • Needs understanding of caching layers and protocols like HTTPS
Project
SKILL.md
2.9 KB
.cursorrules
1.2 KB
package.json
240 B
Ready
UTF-8

# Tags

[No tags]
SKILL.md
Readonly

Caching & CDN Strategy Planner

Design effective caching at all layers.

Caching Layers

Client → CDN (Edge) → Server Cache → Database

CDN Configuration (CloudFront)

typescript
1const distribution = { 2 Origins: [ 3 { 4 DomainName: "api.example.com", 5 CustomHeaders: [ 6 { 7 HeaderName: "X-CDN-Secret", 8 HeaderValue: process.env.CDN_SECRET, 9 }, 10 ], 11 }, 12 ], 13 DefaultCacheBehavior: { 14 ViewerProtocolPolicy: "redirect-to-https", 15 AllowedMethods: ["GET", "HEAD", "OPTIONS"], 16 CachedMethods: ["GET", "HEAD"], 17 Compress: true, 18 DefaultTTL: 86400, // 1 day 19 MaxTTL: 31536000, // 1 year 20 MinTTL: 0, 21 ForwardedValues: { 22 QueryString: true, 23 Cookies: { Forward: "none" }, 24 Headers: ["Accept", "Accept-Encoding"], 25 }, 26 }, 27 CacheBehaviors: [ 28 { 29 PathPattern: "/api/static/*", 30 DefaultTTL: 31536000, // 1 year - never changes 31 }, 32 { 33 PathPattern: "/api/dynamic/*", 34 DefaultTTL: 300, // 5 min - changes frequently 35 }, 36 ], 37};

Server-side Caching (Redis)

typescript
1import Redis from 'ioredis'; 2 3const redis = new Redis(process.env.REDIS_URL); 4 5async function getCachedOrFetch<T>( 6 key: string, 7 fetcher: () => Promise<T>, 8 ttl: number = 3600 9): Promise<T> { 10 // Try cache 11 const cached = await redis.get(key); 12 if (cached) { 13 return JSON.parse(cached); 14 } 15 16 // Fetch and cache 17 const data = await fetcher(); 18 await redis.setex(key, ttl, JSON.stringify(data)); 19 20 return data; 21} 22 23// Usage 24app.get('/api/user/:id', async (req, res) => { 25 const user = await getCachedOrFetch( 26 \`user:\${req.params.id}\`, 27 () => prisma.user.findUnique({ where: { id: req.params.id } }), 28 3600 29 ); 30 31 res.json(user); 32});

Cache Invalidation

typescript
1// Invalidate on update 2app.put('/api/user/:id', async (req, res) => { 3 const user = await prisma.user.update({ 4 where: { id: req.params.id }, 5 data: req.body, 6 }); 7 8 // Invalidate cache 9 await redis.del(\`user:\${req.params.id}\`); 10 11 // Invalidate CDN 12 await cloudfront.createInvalidation({ 13 DistributionId: DISTRIBUTION_ID, 14 InvalidationBatch: { 15 Paths: { Items: [\`/api/user/\${req.params.id}\`] }, 16 CallerReference: Date.now().toString(), 17 }, 18 }); 19 20 res.json(user); 21});

Cache Headers

typescript
1app.get("/api/products", (req, res) => { 2 res.set({ 3 "Cache-Control": "public, max-age=3600", // Browser + CDN: 1h 4 ETag: generateETag(products), 5 "Last-Modified": new Date(products.updatedAt).toUTCString(), 6 }); 7 8 res.json(products); 9}); 10 11app.get("/api/user/profile", (req, res) => { 12 res.set({ 13 "Cache-Control": "private, no-cache", // No caching (sensitive) 14 }); 15 16 res.json(profile); 17});

Output Checklist

  • CDN configured
  • Server cache implemented
  • Invalidation strategy
  • Cache headers set
  • Monitoring configured ENDFILE

Related Skills

Looking for an alternative to caching-cdn-strategy-planner or building a Community AI Agent? Explore these related open-source MCP Servers.

View All

widget-generator

Logo of f
f

widget-generator is an open-source AI agent skill for creating widget plugins that are injected into prompt feeds on prompts.chat. It supports two rendering modes: standard prompt widgets using default PromptCard styling and custom render widgets built as full React components.

149.6k
0
Design

testing

Logo of lobehub
lobehub

Testing is a process for verifying AI agent functionality using commands like bunx vitest run and optimizing workflows with targeted test runs.

73.3k
0
Communication

chat-sdk

Logo of lobehub
lobehub

chat-sdk is a unified TypeScript SDK for building chat bots across multiple platforms, providing a single interface for deploying bot logic.

73.0k
0
Communication

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
Communication