Changes to index.php and ajax requests