我想在加載腳本時禁用時間戳。請參閱圖像使用時間戳禁用加載腳本
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