Temporary files

Post Reply
dilfich
Posts: 239
Joined: Thu Nov 30, 2017 1:17 am

Temporary files

Post by dilfich »

On some versions of Windows, in particular on Windows server 2019, when you start browser instances, temporary files are created that are deleted themselves when you close the application.

How can this be disabled? :shock:

https://a.radikal.ru/a10/2102/80/103d23148359.jpg
User avatar
salvadordf
Posts: 2966
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Temporary files

Post by salvadordf »

Some Chromium versions create files or directories even in "incognito mode" :
https://bitbucket.org/chromiumembedded/cef/issues/3094/cef-force-creates-a-donwloads-directory-in
https://bitbucket.org/chromiumembedded/cef/issues/2289/cefclient-creates-permanent-cache
https://bitbucket.org/chromiumembedded/cef/issues/2071/cef-creates-databases-incognito-empty

As you can see, the CEF project patches Chromium's code to avoid creating them.

You can try leaving the GlobalCEFApp.cache property empty to use RAM. That would enable the "incognito mode" and sometimes that's enough to avoid those temporary files.
dilfich
Posts: 239
Joined: Thu Nov 30, 2017 1:17 am

Re: Temporary files

Post by dilfich »

incognito mode, it doesn't help.
even if you just create it as "TempContext := TCefRequestContextRef . New (",", True, True, True); " the files still appear.
I have encountered this so far only on Windows server 2019, on Windows 10 there seems to be no such thing.
dilfich
Posts: 239
Joined: Thu Nov 30, 2017 1:17 am

Re: Temporary files

Post by dilfich »

Although no, this is on any Windows and I just did not look there. I don't understand why to do this, it's an obvious jamb( I have only the 75 version of the old ones, there is no such thing and when it started I can't tell you. :(
Post Reply