How the caching works in CEF ?

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.

How the caching works in CEF ?

Postby abizeau » Fri Mar 23, 2018 10:34 am

I read different topics on the forum:

http://magpcss.org/ceforum/viewtopic.php?f=6&t=12702
http://magpcss.org/ceforum/viewtopic.php?f=6&t=11352
http://magpcss.org/ceforum/viewtopic.php?f=6&t=14966

And Im questioning myself on few things about caching and my program.

On my last post, I ask how to protect my local file, so as proposed, I use a Resources manager to open with the ArchiveProvider. But now, Im wondering how the caching works.

If I set the CefSettings.cache_path to something, I can see in that folder that the cache files are created. In one of the topic (above), it says that if the setting is not set, the caching is in-memory.

1) Is that still exact in current CEF3 version ? and is everything store in-memory ?
2) Is there any way to force the Resource manager to reload the file from the archive and not from the cache ?

Sincerely,
Alex
abizeau
Techie
 
Posts: 34
Joined: Thu Feb 15, 2018 7:07 pm

Re: How the caching works in CEF ?

Postby magreenblatt » Fri Mar 23, 2018 10:56 am

#1: Yes.
#2: Send "Cache-Control: no-cache" headers with the response. That may require changes to the CefResourceManager implementation.
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 48 guests