Created
August 13, 2012 03:00
-
-
Save eristoddle/3336554 to your computer and use it in GitHub Desktop.
JSON API headers for PHP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//JSON headers | |
header('Cache-Control: no-cache, must-revalidate'); | |
header('Expires: '.gmdate('D, d M Y H:i:s', time()).' GMT'); | |
header('Content-type: application/json; charset=utf-8'); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment