如何在vb.net中清除缓存 [英] how to clear cache in vb.net

查看:483
本文介绍了如何在vb.net中清除缓存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在asp.net中从java脚本调用popup中的页面,但是数据并不令人耳目一新。我认为页面是从cache打开的。所以如何清除cache.so每次从服务器端打开页面。

i am calling page in popup from java script in asp.net, but data is not refreshing. i think page is opening from cache.so how to clear cache.so that every time page open from server side.

推荐答案

我不确定你是否可以清除由于安全原因,以编程方式缓存浏览器缓存。

相反可以阻止浏览器缓存页面。



I m not sure if you can clear the browser cache programmatically due to security reasons.
Instead can prevent the browser from caching the page.

<meta http-equiv='cache-control' content='no-cache'>
<meta http-equiv='expires' content='0'>
<meta http-equiv='pragma' content='no-cache'>





参考:

http://stackoverflow.com/questions/8155064/how-to-programmatically-empty-browser-cache [ ^ ]


这篇关于如何在vb.net中清除缓存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆