Caching means storing a reusable copy of data or a computed result so a later request does not need to repeat the same work. A web cache stores HTTP responses, such as images or pages, and reuses them when its rules permit.
The benefit is less repeated downloading or server processing. The trade-off is that a stored copy can outlive a change at the source. We explain the three layers website owners commonly encounter and why clearing one cache does not necessarily refresh the others.
How a web cache works
Imagine that a browser requests a website’s stylesheet. If a cache already has a reusable response for that request, it can supply the saved copy. That is a cache hit. Otherwise, the request must obtain the resource from another layer or the origin server, and the response may then be stored for reuse.
A cache is not just an indefinite folder of old files. It has rules about which responses can be stored, how long they remain fresh and when their validity must be checked. The URL is an important part of identifying the response, and other factors can matter when the content varies.
Correct caching can reduce latency, transferred data and origin workload. It does not guarantee a particular speed score, search ranking or saving. The result depends on the resources, cache policy and whether requests actually reuse stored responses.
Need the domain first?
Runs the same live check as the front page. If it is taken we will show you when it expires.
The three caching layers website owners meet
Browser caching
A browser cache is private to a particular client. It can reuse resources already downloaded for that browser, subject to their cache rules. Returning visitors may therefore avoid downloading unchanged images, scripts and stylesheets again.
This cache is not shared with every visitor. Clearing your own browser cache does not clear another visitor’s copy or the copies held at your CDN. It is a local troubleshooting action, not a website-wide publishing action.
Server-side caching
At the origin, a website can reuse prepared output or intermediate work rather than regenerating everything for each request. Application-level caches and managed reverse-proxy caches are examples of different mechanisms at this layer.
The correct controls depend on the software and host. A page cache and an application-result cache do not necessarily contain the same data or use the same invalidation rules. Identify which cache your hosting service or application actually provides before following a purge instruction.
CDN caching
A content delivery network can serve eligible responses from its distributed infrastructure instead of forwarding every request to your origin. This is a shared, managed cache: its configuration must distinguish public resources from information intended for one user.
For a concrete provider example, see how Cloudflare cache works. Do not assume enabling a CDN caches every HTML page. Cloudflare’s default behavior, for example, caches supported static file types but not HTML or JSON by default.

Freshness, TTL and revalidation
A cached response is fresh while it remains within its allowed freshness lifetime. After that, it becomes stale. Stale does not necessarily mean deleted: the cache may be able to ask the server whether its stored version is still valid.
HTTP responses commonly express freshness through Cache-Control: max-age=.... The value is a duration in seconds. A cache can also use validation information such as ETag or Last-Modified to make a conditional request.
If the server confirms that nothing changed, it can return 304 Not Modified, allowing the stored response to be reused without sending the full body again. If the resource changed, the server supplies a new response. Revalidation is therefore different from downloading every file again.
TTL also appears in DNS, but DNS caching stores naming answers rather than website responses. Changing a page and changing its DNS record are separate operations. Our DNS guide explains that distinction.
No-cache, no-store and private are not synonyms
- no-cache: the response may be stored, but it must be validated before reuse for a new request.
- no-store: instructs a cache not to store the response.
- private: permits storage in a private cache but not a shared cache.
These differences matter for signed-in pages and personal information. A cookie alone does not automatically make a response private under generic HTTP caching rules. Use the application’s intended cache controls and verify the CDN or reverse proxy’s actual behavior.
A managed cache may also have configuration that changes how origin headers are interpreted. Read its documentation rather than assuming a header overrides every explicit CDN rule. Avoid public caching for account, cart or other personalized responses unless you understand and have verified the complete design.
What clearing the cache actually does
Clearing or purging removes stored entries from the cache you selected. A subsequent request may need to fetch or generate the resource again. It does not delete the original website, and it does not necessarily delete cookies, account sessions or other browser storage.
A force reload is also not the same as deleting the entire browser cache. It changes how the current load uses cached responses. Browser behavior and shortcuts vary, so follow the relevant browser’s help rather than treating a desktop keyboard shortcut as a universal mobile instruction.
Most importantly, refreshing your browser cannot repair an out-of-date response already being served by an origin cache. A CDN purge cannot remove a fresh response already stored in every visitor’s browser. Each layer needs its own diagnosis.
How to troubleshoot an update that is missing
- Confirm the source changed. Check that the intended page or file was actually published at the URL you are requesting.
- Check the origin cache. If your application or host caches output, invalidate the relevant page using its documented controls.
- Check the CDN. Inspect its response headers and purge the affected resource if it still serves an older copy.
- Check the browser. Reload or use the browser’s documented cache-clearing controls to rule out a local response.
- Verify the exact resource. A corrected page may still reference an old stylesheet or image URL; inspect that resource separately.
Prefer a targeted purge to routinely emptying every cache. A full purge can cause more requests to return to the origin at once. Our Cloudflare purge guide covers that provider’s controls; the right origin purge method depends on your host or software.
Choose a caching policy that matches the content
Stable public assets suit longer caching, especially when their filenames or URLs change with each version. Versioned asset URLs let an updated page request a new resource instead of waiting for an old URL’s freshness lifetime to end.
Frequently changing HTML needs a different policy from immutable images or scripts. Personalized content needs explicit privacy boundaries. Start with your host’s supported configuration and test normal visitors as well as signed-in users.
On an Apache setup, our browser-cache header guide explains the directory-configuration approach. If you are planning a new website rather than fixing an existing cache, our domain name generator can help with naming; that is separate from configuring delivery.
Common questions
Is cache the same as cookies?
No. An HTTP cache reuses responses. Cookies are separate data sent according to their own browser and server rules. A browser’s deletion interface may offer both, but choosing one does not mean both are removed.
Should I clear every cache every day?
Not as a substitute for correct invalidation. Purge when needed after a change or during diagnosis, and fix the underlying policy if stale content repeatedly appears.
Will clearing cache always show the newest page?
No. It removes copies only at the selected layer. Another cache, an unpublished change or the wrong URL can still explain the result. Verify the response rather than assuming a successful purge solved it.