Sobes.tech
Junior — Middle

What types of resources and data can a browser cache to speed up page loading?

sobes.tech AI

Answer from AI

The browser can cache various types of resources and data to speed up page loading:

  • HTML documents
  • CSS files
  • JavaScript scripts
  • Images (JPEG, PNG, SVG, etc.)
  • Fonts
  • API responses (e.g., JSON), if caching headers are set

Caching is based on HTTP headers such as Cache-Control, ETag, and Last-Modified, which allow the browser to reuse stored resources without making a new request to the server.