Cache - purge all except specific subdomain's content?

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Cache - purge all except specific subdomain's content?

Postby HarmlessDave » Mon Jul 12, 2021 11:52 am

CEF 87.1.12+g03f9336+chromium-87.0.4280.88, Windows 32-bit, but a solution for newer versions is fine too.

Use case: we want to use a fixed cache folder to preserve the contents but to only keep pages, scripts, images fetched from one subdomain while erasing everything else between sessions. For our use caching the one location would speed up later sessions but for security reasons we need to erase all other content.

So if during a session the user connects to www.able.com, www.baker.com and www.charlies.com we would erase all the content from baker and charlie while keeping the content from able.

I can't find any posts or pages on how the cache code works, or even whether it is handled by CEF or Chromium. Any pointers would be helpful.
HarmlessDave
Expert
 
Posts: 370
Joined: Fri Jul 11, 2014 2:02 pm

Re: Cache - purge all except specific subdomain's content?

Postby magreenblatt » Mon Jul 12, 2021 12:06 pm

It may be possible with the DevTools protocol. For example, Storage.clearDataForOrigin.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: Cache - purge all except specific subdomain's content?

Postby HarmlessDave » Mon Jul 12, 2021 5:41 pm

Thanks, I'll look into that.
HarmlessDave
Expert
 
Posts: 370
Joined: Fri Jul 11, 2014 2:02 pm


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 31 guests