如何从代码隐藏中删除浏览器缓存中的css javascript文件。 [英] how to delete css javascript file from browser cache from codebehind.

查看:63
本文介绍了如何从代码隐藏中删除浏览器缓存中的css javascript文件。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



如何从代码隐藏中删除浏览器缓存中的css,javascript文件?

Hi,
how to delete css, javascript file from browser cache from codebehind?

推荐答案

你不能清除浏览器缓存形成了背后的代码。文件后面的代码在服务器端执行。 (假设您的项目是ASP.NET)。而且,据我所知,您无法使用客户端脚本(如javscript等)清除浏览器缓存。



您可以实际清除应用程序缓存。

you can''t clear the browser cache form the code behind. code behind files are executed on the server side. (Assuming your project is ASP.NET). And also, as far as I know, you can''t clear browser cache using client side script such as javscript etc..

you can clear the application cache pragmatically.


' 。button')。click( function (){
('.button').click(function() {


.ajax({
url:
context:文件 .body,
成功:功能(s,x){
.ajax({ url: "", context: document.body, success: function(s,x){


这篇关于如何从代码隐藏中删除浏览器缓存中的css javascript文件。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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