Page 1 of 1

Cache - purge all except specific subdomain's content?

PostPosted: Mon Jul 12, 2021 11:52 am
by HarmlessDave
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.

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

PostPosted: Mon Jul 12, 2021 12:06 pm
by magreenblatt
It may be possible with the DevTools protocol. For example, Storage.clearDataForOrigin.

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

PostPosted: Mon Jul 12, 2021 5:41 pm
by HarmlessDave
Thanks, I'll look into that.