Back to skills

netlify-caching

infrastructure

Controls how Netlify's CDN caches responses from functions, edge functions, and static assets. Covers Cache-Control header configuration, stale-while-revalidate patterns, durable cache for serverless

Setup & Installation

npx skills add https://github.com/netlify/netlify-caching --skill netlify-caching
or paste the link and ask your coding assistant to install it
https://github.com/netlify/netlify-caching
View on GitHub

What This Skill Does

Controls how Netlify's CDN caches responses from functions, edge functions, and static assets. Covers Cache-Control header configuration, stale-while-revalidate patterns, durable cache for serverless functions, cache tag assignment, and on-demand purge via the Netlify Functions API. Netlify uses separate cache layers with distinct headers for CDN vs browser, and getting this wrong either over-caches dynamic data or bypasses the CDN entirely — this skill maps out exactly which header controls which layer.

When to use it

  • Working with netlify caching functionality
  • Implementing netlify caching features
  • Debugging netlify caching related issues