Description
netlify-caching is an agent skill that helps a coding assistant control how Netlify's CDN caches responses from functions, edge functions and static assets. The skill covers Cache-Control header settings, stale-while-revalidate patterns, durable caching for serverless functions, cache tags for grouping related pages, and on-demand purging through the Netlify Functions API. Its main job is to explain which header controls which cache layer. Netlify uses separate cache layers with distinct headers for the CDN and the browser, and the page says that getting this wrong either caches dynamic data for too long or bypasses the CDN entirely. A coding assistant that uses the skill can set the CDN duration for an API response without changing how long the browser keeps it, and can tag product or listing pages so a single purge call clears all related content. It also helps with stale-while-revalidate, so visitors get a fast cached answer while the copy refreshes in the background, and with debugging cache hit and miss behavior. Install it with the command shown on this page.…
Highlights
- Cache-Control header configuration
- stale-while-revalidate setup
- Durable cache for functions
- Cache tags and on-demand purge
- CDN versus browser cache layers explained
Ratings & Reviews
No ratings yet
Be the first to rate netlify/netlify-caching.
People also visit

netlify-config
Configure Netlify builds and routing via netlify.toml, _redirects, and _headers
netlify/netlify-caching FAQ
What does this skill do?
It guides a coding assistant to set up CDN caching and cache purging for Netlify functions, edge functions and static assets.
How do I install it?
Run npx skills add https://github.com/netlify/context-and-tools --skill netlify-caching, or paste the skill link into your coding assistant and ask it to install the skill.
Can I cache for the CDN but not the browser?
Yes. The page says Netlify uses separate headers for CDN and browser caching, and the skill maps which header controls each.
How do I clear cached content?
The skill covers cache tags and on-demand purge through the Netlify Functions API.
What are the best netlify/netlify-caching alternatives?
Popular alternatives to netlify/netlify-caching include netlify-caching, netlify-config and netlify/netlify-config. See all netlify/netlify-caching alternatives





