我已经尝试了我所知道的一切以及我发现阻止IE(Edge!)缓存的所有内容:
cache:false
ajaxSetup
GET
更改为POST
我没有使用C#来使用某些帖子中提到的param(我正在使用coldfusion)。有人知道另一种方法来修复IE“功能”吗?
这是AJAX代码,如果你不信任我(比如House博士说:每个人都说谎)或者我正在跳过某些东西:
$('a#showLista').click(function(event){
event.preventDefault();
$.ajax({
url: 'cfc/carrito.cfc?' + (new Date()).getTime() + '&method=preciosListaFav',
cache: false,
countentType: "application/json; charset=utf-8",
dataType: "json",
type: 'POST',
data: {
DataSource: DataSource,
IDCliente: clienteID,
IDUsuario: IDUsuario,
Sesion: Sesion
},
success: function(datos) {
i = datos.DATA.length;
if (i > 0) {
// Insert data into table
} else
// Alert empty list
}
});
});