DelphDelphi Chromium Embedded 清除指定链接浏览器缓存、Cookies


本文整理自网络,侵删。

 
Delphi CEF4为了避免使用缓存:(1)不要在程序代码中设置GlobalCEFApp.Cache;(2)在调用LoadURL之前设置以下两个值:

Chromium1.CustomHeaderName  := 'Cache-Control';
Chromium1.CustomHeaderValue := 'no-cache';
Chromium1.LoadURL(aURL);

//清理 cookies
 if not(Chromium1.FlushCookieStore(False)) then
   showmessage('There was a problem flushing the cookies.');

相关阅读 >>

Delphi url解�a函��(by kingron)

Delphi winapi: setwindowtext - 设置窗口标题

Delphi xe更改ttrayicon系统任务栏图标(无模糊)

Delphi编程之系统oem diy

Delphi共享软件防破解的实用招法

Delphi opendialog1 添加文件打开多选模式

Delphi image1 图像旋转90

Delphi自动提交网页表单和获取框架网页源码

Delphi 自定义产生随机字符串函数

Delphi xe7组件tetheringmanager1发送消息

更多相关阅读请进入《Delphi》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...