NSURLCache: inconsistent behaviour
问题 I was observirng some strange behaviour of my app sometime caching responses and sometime not caching them (all the responses have Cache-Control: max-age=600). The test is simple: I did a test.php script that was just setting the headers and returning a simple JSON: <?php header('Content-Type: application/json'); header('Cache-Control: max-age=600'); ?> { "result": { "employeeId": "<?php echo $_GET['eId']; ?>", "dateTime": "<?php echo date('Y-m-d H:i:s'); ?>'" } } This is the response I get