OK, I'm familiar with that. The solution is to not allow IE to cache the requested page. I see that on the page you linked to that it was using jQuery for AJAX. I have no way of knowing whether or not that's also the case with the AJAX request that you're talking about (the one I would need special access to make, and that seems to be the problem). But if it is, just add cache: false
to the properties for the request. Example from txfannin.org/files_java/jquery.dataTables.tableTools.2.2.1-dev.js:
Code:
"ajax": $.extend( {}, TableTools.buttonBase, {
"sAjaxUrl": "/xhr.php",
"sButtonText": "Ajax button",
"fnClick": function( nButton, oConfig ) {
var sData = this.fnGetTableData(oConfig);
$.ajax( {
"url": oConfig.sAjaxUrl,
"data": [
{ "name": "tableData", "value": sData }
],
"success": oConfig.fnAjaxComplete,
"dataType": "json",
"type": "POST",
"cache": false,
"error": function () {
alert( "Error detected when sending table data to server" );
}
} );
},
"fnAjaxComplete": function( json ) {
alert( 'Ajax complete' );
}
} ),
In the above example, the cache is already set to false. So I'm pretty sure that's not the code that's giving you the problem.
One can also set the global jQuery AJAX cache property to false and that will work for any jQuery AJAX code on the page using that instance of jQuery as long as it doesn't specifically specify cache: true
:
Code:
jQuery.ajaxSetup({
cache: false
});
A good place for that would be here (addition highlighted):
Code:
<![endif]--><!--Load the primary javascripts for all pages -->
<script type="text/javascript" src="//code.jquery.com/jquery-1.10.2.min.js"></script>
<script type="text/javascript">
jQuery.ajaxSetup({
cache: false
});
</script>
<script type="text/javascript" src="//code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<script type="text/javascript" src="files_java/jquery.dataTables.1.09.4.min.js"></script>
<script type="text/javascript" src="files_java/jquery.dataTables.tableTools.2.2.1-dev.js"></script>
<script type="text/javascript" src="files_java_mine/site_functions.js"></script>
<script type="text/javascript" src="files_java/jquery.functions.js"></script>
<script type="text/javascript" src="files_java/sideBarMenu.js"></script>
<script type="text/javascript" src="files_java/equalcolumns.js"></script>
</head>
But, if the specific jQuery AJAX call specifies cache true, or the global setting is changed to true after the above and before the actual AJAX call, or if the AJAX call that is causing the problem is not using jQuery AJAX, there will still be a problem. Oh, and if there is another version of jQuery loaded before the AJAX call, that can revert the global to cache: true.
If you want more help, let me see the specific code that's causing the problem.
Bookmarks