Page 1 of 1
Temporary files
Posted: Wed Feb 24, 2021 8:06 pm
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?
https://a.radikal.ru/a10/2102/80/103d23148359.jpg
Re: Temporary files
Posted: Wed Feb 24, 2021 8:18 pm
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.
Re: Temporary files
Posted: Wed Feb 24, 2021 8:35 pm
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.
Re: Temporary files
Posted: Fri Feb 26, 2021 6:37 pm
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.