brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: Clear site data for one site from Chrome DevTools

Devtools
~/tips/tip-devtools-clear-site-data

cat ~/tips/tip-devtools-clear-site-data.md

Wipes storage and cache for the current site only, leaving other sites alone.

When a web app misbehaves, stale cache or storage is a common suspect. Clearing all browsing data logs you out of everything, which is overkill.

Open DevTools, go to Application, then Storage. Check the data types you want gone and click Clear site data. This applies to the origin you’re looking at.

There’s a checkbox next to the button, including third-party cookies. Tick it if the problem might sit in an embedded service rather than the site itself. For a stale offline copy, make sure Cache Storage is checked, since that is where service workers keep their files.

A caveat: you’ll be logged out of that site, and anything the app only stored locally, such as unsaved drafts, is gone. Export what matters first.

Chrome also has a clear browsing data dialog for the whole browser, but that one covers every site in the chosen time range. The DevTools button is the narrow version, which is usually what you want while debugging a single app.

The steps come from the Chrome docs page on cache storage, which says next to Clear site data you can enable including third-party cookies to clear those as well. That page does not go into more detail about what else the button removes, so check the boxes in the list rather than assuming.

Further reading: Cache storage in Chrome DevTools

More Devtools tips user.id === 42 $x(path [, startNode]) @media (prefers-color-scheme: dark) { queryObjects(Promise) inspect(document.querySelector('footer')) All Devtools tips (22) All topics

Link