netlify-caching

Installation
SKILL.md

Caching on Netlify

Default Behavior

Static assets are cached automatically:

  • CDN: cached for 1 year, invalidated on every deploy
  • Browser: always revalidates (max-age=0, must-revalidate)
  • No configuration needed

Dynamic responses (functions, edge functions, proxied) are not cached by default. Add cache headers explicitly.

Cache-Control Headers

Three headers control caching, from most to least specific:

Installs
821
GitHub Stars
23
First Seen
Feb 27, 2026
netlify-caching — netlify/context-and-tools