Ext.Ajax.request({
url: '/AJAXRequest/Login.aspx',
params: 'userType=0&userName="vvjob2008"&r='+Math.random(),
method: 'POST',
success: this.LoginSuccess,
failure: this.LoginFailure,
disableCaching: true
});
我在 Page_Load 加了以下代码也没办法清除缓存
Response.Charset = "UTF-8";
Response.Buffer = true;
Response.ExpiresAbsolute = DateTime.Now.AddDays(-1.0);
Response.Expires = 0;
Response.CacheControl = "no-cache";
Response.AddHeader("Pragma", "No-Cache");
请各位帮忙指点一下!!!
url: '/AJAXRequest/Login.aspx',
params: 'userType=0&userName="vvjob2008"&r='+Math.random(),
method: 'POST',
success: this.LoginSuccess,
failure: this.LoginFailure,
disableCaching: true
});
我在 Page_Load 加了以下代码也没办法清除缓存
Response.Charset = "UTF-8";
Response.Buffer = true;
Response.ExpiresAbsolute = DateTime.Now.AddDays(-1.0);
Response.Expires = 0;
Response.CacheControl = "no-cache";
Response.AddHeader("Pragma", "No-Cache");
请各位帮忙指点一下!!!
本文探讨了使用 Ext.Ajax 进行 POST 请求时遇到的缓存问题,作者尝试了多种方式设置 HTTP 响应头来禁用缓存但未成功。
1万+

被折叠的 条评论
为什么被折叠?



