Technology reading / 02
A copy close at hand.
Caching saves repeated work by keeping something ready to use. Its usefulness depends on knowing when that copy is still current.
General educational information
Reuse a result
A cache holds a copy of information that may be requested again. Browsers can reuse downloaded resources; other systems can keep the results of expensive calculations. Finding a suitable copy is called a cache hit. When none is available, the system must obtain or calculate the information elsewhere.
Freshness needs a rule
Copies can outlive the information they represent. A freshness period tells a system how long it may reuse a response under particular rules. Revalidation asks whether the source has changed. Removing a copy early is another way to prevent continued reuse.
Consider a hypothetical public timetable. Keeping a copy can make repeated viewing convenient, but a schedule change creates a freshness problem. A useful design would make the date clear and provide a way to obtain current information.
A cache is not an archive
Temporary copies can disappear when storage fills, rules expire or someone clears them. Their purpose is convenient reuse, rather than durable preservation. Important records need a separate plan for retention.
When a page looks unexpectedly old, a cached resource is one possible explanation, alongside publication errors or a different source. Clearing a browser cache can help with some problems, but it does not correct every cause. Start by identifying which information is stale and where it came from.
Further reading: Cloudflare: What is caching?