我想在加载脚本时禁用时间戳。请参阅图像使用时间戳禁用加载脚本
http://dl.dropbox.com/u/19616542/Capture.PNG
我还设置了AJAX,缓存:真。下面是代码:
$.ajax({
url:url
data:{},
type:'post',
cache: true,
dataType:'json',
success:function(data,status){
//something here
}
else {
window.location.reload();
}
}
});
,也是我有
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Pragma" content="Public">
<meta http-equiv="Cache-control" content="public">
<meta name="keywords" content="something">
<meta http-equiv="Content-Style-Type" content="text/css">
<meta http-equiv="Content-Script-Type" content="text/javascript">
我使用jQuery.1.7.2
这些都是为'GET'但你上面有'POST' – Musa 2012-08-15 00:44:02
这样就意味着我需要做的POST所有的Ajax? – Sml004 2012-08-15 00:48:25
但看看第一行,我只是加载jQuery。但为什么它有时间戳? – Sml004 2012-08-15 00:49:26