Clear cache for specific domain name in chrome

319

63

I want to clear the cache for a specific domain name in Chrome. Is there an extension or other method that I can use to do this?

Benjamin Crouzier

Posted 2011-05-04T10:13:20.707

Reputation: 4 288

It's times like these when I switch back to Firefox for a day. – User – 2014-11-08T02:02:03.003

2No one has really answered this question about how to clear cache for a specific domain – DiverseAndRemote.com – 2015-08-26T14:43:28.597

Since F12 developer tools is built into Chrome, using them is open to everyone, not just "Developers" for clearing specific items. – Fiasco Labs – 2016-02-17T02:33:00.777

2The problem with this is that it is not as simple to clear the cache as you would think. When a browser caches files, it does so based on its URL. The complication is that many sites share common files like Google API scripts, Gravatar icons, etc. How would you go about clearing the cache for only a specific site? Should the common files it loads be deleted as well (and thus partially clearing the cache for other sites)? Or should they be left intact? (probably the most “correct” solution). – Synetech – 2013-08-07T01:12:00.210

3Honestly, none of these answers really "answer" the question for me. These are developer answers. The root question is how a regular person would do this. It would be unreasonable to ask a non-developer to do these things. – Will Strohl – 2014-04-21T14:46:24.827

Answers

345

UPDATE: As of Chrome version 52.0.2743.116 m, you can perform the following steps:

F12 > Chrome Developer Tools > Application tab > Clear storage in left tree > Select the data items to clear, then click Clear site data.


This may be a quicker/simpler way:

  • Press F12 to open Chrome Developer Tools (will pop up from bottom)
  • Click settings "gear" icon in top-right corner
  • Under General check Disable cache
  • Reload page and re-enable caching by un-checking this box

cslarson

Posted 2011-05-04T10:13:20.707

Reputation: 3 574

5alt ⌥ + cmd ⌘ + i on Mac to open Chrome Developer Tools – Yves M. – 2015-03-04T16:23:05.323

There should be an extension for this. – User – 2015-03-15T01:23:16.240

THANK YOU!!! A hotel in Bangkok cached a redirect to their login page on one of my most-used URLs. It has been driving me CRAZY! – John R. Strohm – 2015-03-18T03:28:54.777

Just to add, under the chrome://settings/cookies/ area, there is data stored as "local storage" which may come under a general definition of "cache" even though it is technically a cookie. Long story short: clearing the cache didn't work for me but clearing the "local storage" cookie did. – ssaltman – 2015-12-01T02:53:30.183

2IMHO this does not answer "clear the cache for a specific domain name in Chrome" - it clears cache only for a single page, not the whole domain. – Cybot – 2016-07-11T06:27:36.750

I tried this multiple times to no avail. I'm still seeing the old Twitch design, whereas I see their new one if I load the site in an incognito window. I'm not sure what is causing this, maybe some incorrect settings for app caching on their side. I really wonder however, why there doesn't seem to be a not-too-complicated way in Chrome to clear the entire cache for a certain domain or reload a page fully like in Firefox. – CodeManX – 2017-04-26T19:05:03.847

Either of the options are not working for me :(. It is an SSL website. I don't want to clear the cache of the entire browser as suggested in another post here.

– RBT – 2017-07-19T03:03:40.603

My bad. Your solution is correct. Actually I was expecting my auto-fill user id and password for a website to get cleared/erased after clearing cache of the browser through your suggested methods. Now I realized that auto-fill user id and passwords are not stored in the cache of the browser. I already upvoted your post for a great answer. :) – RBT – 2017-07-19T06:56:39.897

Note: it's December 23, 2017 and just the first method worked for me. Thanks! :) – henry – 2017-12-23T10:10:27.983

1

Clear Cache & Cookies for specific website in Chrome. Follow this menu tree. Newer versions of Chrome have this tree. I'm on version 67.0.x Windows 10.
Settings | Advanced | "Privacy and security" | "Content settings" | Cookies | "See All cookies and site data" | search by site

See also: http://www.thewindowsclub.com/clear-cache-cookies-specific-website

– atom88 – 2018-06-12T14:19:51.247

I'm running Chromium 75. No General, and no Disable Cache. There's a Disable Cache checkbox on Network tab though. – x-yuri – 2019-09-24T16:59:34.510

This didn't work for me, but Tom Auger's answer below did: https://superuser.com/a/598260/74576

– Ryan – 2019-11-11T17:02:20.473

7Thanks, this actually works unlike the other answers which confuse cache and cookies ;-) – Peter Jenkins – 2012-12-03T13:58:38.903

3But does it actually clear the cache for the page or just load it without using the cache? That is, if you open the cache directory, are any files related to that page gone after you reload? – Synetech – 2013-08-07T01:10:08.170

3

That's a pretty manual way of doing it and can get annoying if you have to do it multiple times. Fortunately there's an easier and faster way: http://superuser.com/a/598260/83619

– Tom Auger – 2014-01-30T17:52:27.373

3Currently Chrome Developer Tools seems to disable cache only while DevTools is open without actually clearing it. – Jaak Kütt – 2014-02-21T15:26:39.273

99

After opening up the developer tools (usually by pressing F12) Click + Hold on the "Reload Page" button. From the popup list, choose "Empty Cache and Hard Reload".

Not sure this clears the cache for the entire domain. But probably satisfies 90% of the use cases of people that visit this SE question.

Note: In some cases this will NOT open the popup list. This is because the page isn't cached at that time, so the menu is not invoked.

Tom Auger

Posted 2011-05-04T10:13:20.707

Reputation: 1 336

How is this different from a shift-reload? Also, it only seems to clear the cache for the current page, not all pages on a domain as the OP asked. – pix – 2015-01-20T00:46:08.660

1Use right-click on GNU/Linux to open the pop-up menu instead of a long click. – z0r – 2015-03-02T02:32:01.207

In my case it was extension DataSaver that hold old inpractical data. Turning it on and off solved the problem. – SkorpEN – 2017-06-20T09:46:54.590

Yes! this cleared a cached .htaccess redirect The other answer (Clear site data) didn't work for my case. – IvanRF – 2017-06-30T21:35:22.600

Ditto. This cleared a stubborn cached .htaccess redirect for me too. Many thanks. It's probably worth pointing out that the "Reload Page" button isn't in the Developer Tools window, but is the familiar button adjacent to the address bar on a standard browser tab. – w5m – 2017-11-21T14:22:38.643

I can't find a reload page button anywhere. Can you add or link to a screenshot? – UuDdLrLrSs – 2018-10-07T11:27:24.453

This clears the whole cache, not just a specific domain. – craq – 2019-09-10T21:46:52.957

3Doesn't seem to work on mac. – Benjamin Crouzier – 2013-05-22T07:27:19.800

4Try having the Developer Toolbar open first - hit F12 (or CMD+SHIFT+C for Console). I haven't tested on a Mac. – Tom Auger – 2013-05-22T15:16:10.543

thanks @Hashbrown for the edit. I should have amended my answer. – Tom Auger – 2013-08-14T18:59:10.367

no worries. this solution is just faster than the selected answer, and less drastic than just disabling the cache altogether. I feel this needs to be up the top, and the only way it'll get upvotes is if people test it and it works for them – Hashbrown – 2013-08-14T23:21:26.987

Indeed, no cigar on a Mac for me neither. Bummer. – Arjan – 2013-08-15T14:07:33.263

46

Here's how to delete Chrome's cookies selectively by domain or subdomain:

  • go to chrome://settings/content/cookies
  • type the domain name in the search box
  • click delete

More details here:

http://oxid-blog.euroblaze.de/miscellaneous/delete-google-chrome-cookies-selectively-by-domain/

This can't however select cookies by web folders, e.g. www.domain.com/folder1.

euroblaze

Posted 2011-05-04T10:13:20.707

Reputation: 557

Just to add to the confusion - this worked for me for something that I'm pretty sure is "cache" AND the chrome settings include something called "local storage" so I believe that the term "browser cache" may be too general. My point is that this answer worked for me. – ssaltman – 2015-12-01T02:52:12.463

This also worked for me. Sometimes it's necessary to clear both the cache and cookies when you're doing web development with user sessions. – mrk2010 – 2016-06-30T01:19:23.930

@DanielSerodio This solution appears to work for all local data, not just cookies. – Muhd – 2016-11-30T22:06:43.300

This seems to be the best solution when you are not able to stop on the domain of interest due to redirects. – Muhd – 2016-11-30T22:08:23.767

"local data" is a specific thing in web dev, not the same as cache – Sam Watkins – 2018-01-25T04:44:01.130

1For Chrome v65 to clear COOKIES, go to Settings > Advanced > Content settings > Cookies > See all cookies and site data > use "search cookies" field to find website and then delete that cookie – Lars Nordin – 2018-04-12T18:58:15.347

@DanielSerodio as confusing as the text is, this actually clears 'cookies and site data', so it clears cache too as far as I can tell – qwertzguy – 2019-02-21T22:00:11.590

2

Welcome to Super User! It would be nice to include the essential parts of the answer here, and provide the link only for future reference.

– slhck – 2011-06-26T13:11:37.077

41The question was about clearing the cache, but you answered how to clear cookies. – Daniel Serodio – 2012-11-28T12:28:43.420

Found cache also from within the same details tab. – Jaak Kütt – 2014-02-21T15:25:38.690

8

  1. Press control shift i (or command shift i on OS X) to open Dev Tools.
  2. Right-click the reload button next to the address bar.
  3. Choose: "Empty Cache and Hard Reload".

Joseph Hansen

Posted 2011-05-04T10:13:20.707

Reputation: 3 578

2

In three steps:

  1. F12 (open developer tools)
  2. F1 (go to settings)
  3. Under Preferences / Network uncheck Disable cache (while DevTools is open)

Note that you can un-dock the DevTools if you would rather keep them as a separate window while open.

Peque

Posted 2011-05-04T10:13:20.707

Reputation: 721

This one is working well if you need to refresh external assets such as js or css – RafaSashi – 2018-02-20T04:47:25.417

2

In Chrome 72+:

  1. Go to chrome://settings/siteData
  2. Type domain name in search box
  3. Either:
    1. Click the trash icon button for each result
    2. Click 'Remove All Shown' button

This will delete all site data for those sites, including cookies and cache.

Nice thing about this technique is that you can easily clear site data for all subdomains of a domain.

The other way to access this setting screen is:
Three dots menu > Settings > Advanced (at bottom) > Content Settings (under Privacy and Security) > Cookies (yes, name is misleading) > See all cookies and site data

qwertzguy

Posted 2011-05-04T10:13:20.707

Reputation: 1 394

1

Deleting the history entries will work in many cases: (Mac)

  1. Cmd+Y (Open History)
  2. Search for your domain
  3. Check all the entries. Unfortunately there's no check all button at the moment. You don't have to click the checkboxes though, clicking on the time works too.
  4. Click Remove selected items

Nelu

Posted 2011-05-04T10:13:20.707

Reputation: 465

1

Wrench -> Preferences -> Under the Hood -> 
Use DNS pre-fetching to improve page load performance

Disable it - thus dumping the whole application cache - reload the affected page - and then re-enable. If this happens often or doesn't clear the issue, some cache upstream from chrome is the problem and you should probably leave chrome's disabled.

Selective invalidation of an application layer cache (which is done strictly for application speed) since chrome has "no business" taking over for the system is might be an answer to some issue, but it isn't a very good answer.

(Lest you get huffy about my "no business" statement, I use pre-fetching myself as I like the zippiness, proper or not)

msw

Posted 2011-05-04T10:13:20.707

Reputation: 3 287

This answer is incorrect. Disabling DNS prefetching does not clear Chrome's HTTP cache. – duskwuff -inactive- – 2019-01-20T05:47:47.560

2Despite your parenthetical objections and the correctness of your solution, I'm huffy anyway. – Blomkvist – 2011-05-04T12:39:09.597

0

Webpack was caching a previous project for me and I need parts of the caching to work so I couldn't use incognito. The top 3 solutions didn't work for my case. What did work and was quick enough to implement was clicking Resources tab in Developer tools, unfolding Cache Storage, and right-clicking to delete the cached data.

garajo

Posted 2011-05-04T10:13:20.707

Reputation: 101