0PricingLogin
React Academy · Lesson

Bundles, Cache & Preloading Hints

Understand bundles and caching: content hashes, immutable assets, HTML as the switch. Use gentle preloading to make interactions feel instant.

Why bundles + cache matter

Goal: Ship smaller bundles and let the browser cache them safely.

  • Content-hashed filenames
  • Immutable cache for assets
  • HTML stays short-lived

Cache strategy basics

  • Hash filenames: app.3f2a1.js
  • Cache-Control: max-age=31536000, immutable
  • HTML: short TTL (e.g., no-store or minutes)
  • Split rarely-used code

All lessons in this course

  1. React.lazy and Suspense — Lazy Components
  2. Route-based & Component-level Splitting
  3. Bundles, Cache & Preloading Hints
← Back to React Academy