Edge Caching Strategies Cheat Sheet

TTL control, purges, and cache hierarchies

Last Updated: November 21, 2025

Focus Areas

Focus
Cache assets at multiple layers (browser, CDN, edge)
Invalidate stale data with surrogate keys

Commands & Queries

curl -I https://cdn.example.com --header 'Surrogate-Key: asset'
Check cache headers
fastly purge key asset
Purge CDN cache
cloudflare cache purge --url https://...
Invalidate edge cache

Summary

Balance freshness with performance by combining TTLs and purges.

💡 Pro Tip: Use cache-control headers, surrogate keys, and stale-while-revalidate.
← Back to DevOps & Cloud | Browse all categories | View all cheat sheets