问题
I am using Delphi Chromium Embedded in my application. I have the following question: is there a way to clear cache of browser ?
回答1:
I also tried to NOT use the cache, by setting the options right. I set up both options (Page and Application cache) to Disabled, but still, my page was using the cache. The solution I found was to use
chromium1.RecreateBrowser(url);
This one cleared my cache.
回答2:
To avoid using cache: (1) do not set GlobalCEFApp.Cache in your program code and (2) set these two values before calling LoadURL:
Chromium1.CustomHeaderName := 'Cache-Control';
Chromium1.CustomHeaderValue := 'no-cache';
Chromium1.LoadURL(aURL);
来源:https://stackoverflow.com/questions/16080509/delphi-chromium-embedded-clear-browser-cache