Netlify CDN Caching PoC
Each page demonstrates a different Netlify caching strategy. The render timestamp proves whether caching is active — if it stays frozen across reloads, the page is cached.
ISR
Durable CDN cache with 60s TTL. Pages are cached on the CDN and revalidated in the background after expiry.
SWR
Server-level stale-while-revalidate with 30s freshness. Stale content is served instantly while a fresh render happens in the background.
Dynamic
No caching at all. Every request triggers a fresh server render. Timestamp changes on every reload.
Static
Prerendered at build time. The HTML is generated once during deployment and served as a static file.
API Route
JSON API endpoint with programmatic Netlify-CDN-Cache-Control headers. Demonstrates API-level caching with 10s TTL.
How to verify
- Deploy to Netlify (caching doesn't work on
localhost) - Open DevTools → Network tab
- Check the
Cache-Statusresponse header "Netlify Edge"; hit= CDN cache hit,miss= fresh render- Reload each page and observe whether the timestamp changes