Skip to main content

Netlify Caching

Skill Verified Active

Guide for controlling caching on Netlify's CDN. Use when configuring cache headers, setting up stale-while-revalidate, implementing on-demand cache purge, or understanding Netlify's CDN caching behavior. Covers Cache-Control, Netlify-CDN-Cache-Control, cache tags, durable cache, and framework-specific caching patterns.

Purpose

To empower developers to effectively manage and optimize caching on Netlify's CDN for improved performance and control.

Features

  • Detailed explanation of cache control headers (`Netlify-CDN-Cache-Control`, `CDN-Cache-Control`, `Cache-Control`)
  • Patterns for common caching scenarios (e.g., 1-hour CDN cache, stale-while-revalidate)
  • Guidance on cache tags and on-demand cache purging
  • Configuration examples for immutable assets and cache key variation
  • Framework-specific caching considerations (Next.js, Astro, Remix, Nuxt, Vite SPA)

Use Cases

  • Configuring cache headers for static and dynamic assets on Netlify.
  • Implementing stale-while-revalidate for better user experience.
  • Setting up on-demand cache purging using cache tags.
  • Understanding and optimizing Netlify's CDN caching behavior for different frameworks.

Non-Goals

  • Providing generic web caching advice outside of Netlify's CDN.
  • Covering browser-only caching strategies in depth.
  • Addressing caching mechanisms unrelated to Netlify's platform.

Installation

First, add the marketplace

/plugin marketplace add netlify/context-and-tools
/plugin install context-and-tools@netlify-context-and-tools

Quality Score

Verified
95 /100
Analyzed about 17 hours ago

Trust Signals

Last commit6 days ago
Stars17
LicenseMIT
Status
View Source

Similar Extensions

Next Cache Components

100

Next.js 16 Cache Components - PPR, use cache directive, cacheLife, cacheTag, updateTag

Skill
vercel-labs

Redis Development

99

Redis performance optimization and best practices. Use this skill when working with Redis data structures, Redis Query Engine (RQE), vector search with RedisVL, semantic caching with LangCache, or optimizing Redis performance.

Skill
redis

Netlify Image CDN

98

Guide for using Netlify Image CDN for image optimization and transformation. Use when serving optimized images, creating responsive image markup, setting up user-uploaded image pipelines, or configuring image transformations. Covers the /.netlify/images endpoint, query parameters, remote image allowlisting, clean URL rewrites, and composing uploads with Functions + Blobs.

Skill
netlify

Netlify Identity

100

Use when the task involves authentication, user signups, logins, password recovery, OAuth providers, role-based access control, or protecting routes and functions. Always use `@netlify/identity`. Never use `netlify-identity-widget` or `gotrue-js` — they are deprecated.

Skill
netlify

Performance Analysis

100

Comprehensive performance analysis, bottleneck detection, and optimization recommendations for Claude Flow swarms

Skill
ruvnet

MongoDB Connection Optimizer

100

Optimize MongoDB client connection configuration (pools, timeouts, patterns) for any supported driver language. Use this skill when working/updating/reviewing on functions that instantiate or configure a MongoDB client (eg, when calling `connect()`), configuring connection pools, troubleshooting connection errors (ECONNREFUSED, timeouts, pool exhaustion), optimizing performance issues related to connections. This includes scenarios like building serverless functions with MongoDB, creating API endpoints that use MongoDB, optimizing high-traffic MongoDB applications, creating long-running tasks and concurrency, or debugging connection-related failures.

Skill
mongodb

© 2025 SkillRepo · Find the right skill, skip the noise.