Browser window with cache, cookie, and storage icons
When a website acts weird, the most common advice is “clear your cache and cookies.” It works often enough that people keep repeating it, but it can also log you out, reset preferences, or not fix the real problem.

This guide helps you clear the right thing on purpose.

We’ll break down what cache, cookies, and “site data” actually mean in modern browsers, what each one affects, and a practical checklist for choosing the smallest reset that solves your issue.

Quick definitions (plain language)

Cache is a pile of saved copies of website files (like images, styles, and scripts) so pages load faster next time.

Cookies are small pieces of data a site stores in your browser, commonly used for sign-in sessions, preferences, and tracking.

Site data is the broader bucket: cookies plus other storage like localStorage, IndexedDB, service worker data, and cached app files.

Refresh arrow over layered cached file tiles
Think of it like this: cache is “downloaded files,” cookies are “small notes,” and site data is “everything the site kept on your device.”

What clearing the cache actually does

Clearing cache removes saved website files so the browser has to re-download them.

This is most useful when:

  • a site’s layout is broken (missing styles, odd formatting)
  • you keep seeing an old version after a site update
  • images or scripts fail to load correctly
  • a “stuck” page won’t refresh properly

What it usually does not affect: your login state (that’s typically cookies) and your saved in-site settings (often site data).

What clearing cookies does (and why it logs you out)

Cookies commonly store session identifiers that tell a website “this browser is signed in as you.” Clear those, and the site no longer recognizes your session.

Cookie and padlock icons representing login sessions
Clearing cookies is useful when:

  • a login loop happens (you sign in, then it sends you back to sign-in)
  • the site thinks you’re signed in on one page but signed out on another
  • a consent banner or region/language choice is stuck incorrectly
  • you want to remove tracking cookies from specific sites

Side effects are normal: you may need to sign back in, redo consent choices, and reselect some preferences.

What “site data” includes (the part people don’t realize)

In many browsers, “site data” means more than cookies. It can include:

  • localStorage: small key/value data often used for UI preferences
  • IndexedDB: larger structured storage used by web apps (offline data, message caches)
  • Service workers: background scripts used for offline support and faster loading
  • App caches: resources a web app pins for performance

Database and browser window showing site data storage blocks
Clearing site data is the “deep reset.” It can fix stubborn app issues, but it can also remove offline content, saved drafts, or locally stored app state.

A safe decision checklist: what should you clear first?

If you want the smallest change that has the best chance of working, use this order.

  • Try a hard refresh first (reload without cache) if the page looks outdated or broken.
  • Clear cache for that site if hard refresh helps but the issue comes back.
  • Clear cookies for that site if the problem is login, sessions, or repeated consent prompts.
  • Clear site data for that site if it’s a web app misbehaving (blank screens, endless loading, features not saving).
  • Only clear “all time, all sites” data if you’re okay re-signing into many services and losing widespread preferences.

Whenever possible, clear data for one site, not your whole browser.

Common scenarios and the best fix

Scenario: A site’s design is scrambled or buttons don’t work.

  • Best first step: hard refresh
  • Next: clear cache for that site

Scenario: You keep getting logged out immediately after signing in.

  • Best first step: clear cookies for that site
  • Next: clear site data if the app is still stuck

Scenario: A web app won’t load past a spinner.

  • Best first step: clear site data (especially if it uses offline features)
  • Also consider: disable extensions for that site, then retry

Scenario: You’re trying to improve privacy.

  • Best first step: clear third-party cookies or block them (browser setting)
  • Then: remove cookies/site data for specific trackers or sites you don’t use

Takeaway: clear the smallest thing that matches the problem

Cache fixes stale or broken files. Cookies fix session and sign-in weirdness. Site data is the full reset for stubborn web app issues.

If you start small (hard refresh → site cache → site cookies → site data), you’ll solve problems faster and avoid wiping more than you intended.