How the web works

Two kinds of memory.
Two different jobs.

A browser cache can reuse a response. A cookie can carry a small value back to a website. Clearing one does not mean clearing the other.

Follow the explanation ↓

Follow the idea

Keep the two jobs separate.

A toy browser, not a view of your real storage. This example never reads, writes or clears your cookies or cache.

01 / 04

Cache a response to reuse it.

Suppose a page downloads a Moon image. If the caching rules allow reuse, the browser can store the response and avoid downloading the same bytes on a later visit. Some responses need validation before reuse.

02 / 04

Send a small value with a request.

A server can set a cookie that the browser sends with matching later requests, subject to cookie rules and browser policy. A cookie might identify a session or remember a preference. It is not a copy of the Moon image.

03 / 04

Clear files, keep the session.

In our toy example, clearing only the cache removes the stored image. The next visit downloads it again. The session cookie is still present, so this action alone does not sign the visitor out.

04 / 04

Clear the cookie, keep the file.

Removing the toy session cookie breaks this example’s remembered session, while the image can remain cached. Real sites may use local storage, server-side sessions and other mechanisms; clearing cookies is not a complete privacy reset.

Make a prediction

You clear cached images and files but leave cookies. What may happen next?

Try clearing one at a time.

Our toy page remembers a session with a cookie and stores one image response in its cache.

Image cached · Session cookie present

Next visit: reuse the image and send the session cookie.

Sources & scope

This is an illustrated explanation, not a live browser trace. Written for Nemonic with AI assistance; primary references checked November 6, 2026.