Jake Archibald avatar Jake Archibald

Caching best practices & max-age gotchas

Screenshot of “Caching best practices & max-age gotchas”

Used correctly, caching is a massive performance enhancement and bandwidth saver. Favour immutable content for any URL that can easily change, otherwise play it safe with server revalidation. Only mix max-age and mutable content if you're feeling brave, and you're sure your content has no dependancies or dependents that could get out of sync.