Possible Duplicate:
Is Safari on iOS 6 caching $.ajax results?
I have the problem that i think cache:false in $.ajax dont work.
Example
URL: update.php return: 1
But i should return: 0
Rename update.php to update2.php
Return: 0
url: '/update.php',
cache: false,
type: "POST",
data: {checkPost: $("#kvittens").val()},
crossDomain: true,
The update.php code
header("Access-Control-Allow-Origin: *");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header('content-type: application/json; charset=utf-8');
echo(0);
?>
No comments:
Post a Comment