Skip to content

Commit

Permalink
Closes issues #1
Browse files Browse the repository at this point in the history
  • Loading branch information
mheadd committed May 4, 2013
1 parent 2140548 commit 42d883c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,10 @@ function generateResponse($name, $callback, Array $parameters=array()) {

$response = json_encode(getData($name, $parameters));

// Add caching headers?
// Caching headers
header('Cache-control: public');
header("Pragma: cache");
header('Expires: ' . gmdate("D, d M Y H:i:s", time() + 12000) . " GMT");

if($callback) {
header('Content-type: application/javascript');
Expand Down

0 comments on commit 42d883c

Please sign in to comment.