Image for Cache-Control

Cache-Control

Cache-Control is an instruction used in web communication to manage how browsers and intermediate servers store and reuse web resources like images, stylesheets, and scripts. It helps determine how long these files can be kept in storage before needing to be fetched again from the original server. This improves website performance by reducing load times and bandwidth use. Proper cache management ensures users see the most up-to-date content while minimizing unnecessary data transfers. In essence, Cache-Control directs how, when, and for how long content should be cached, balancing efficiency and freshness.