mirror of
https://github.com/ConnectedHumber/Air-Quality-Web
synced 2024-11-21 06:22:59 +00:00
Add todo
This commit is contained in:
parent
ca955f3c89
commit
0a5588a905
1 changed files with 2 additions and 0 deletions
|
@ -78,6 +78,8 @@ class FetchData implements IAction {
|
|||
$response = json_encode($data);
|
||||
|
||||
// 4: Send response
|
||||
|
||||
// TODO: Add cache-control headers here in production mode only
|
||||
header("content-type: application/json");
|
||||
header("x-time-taken: " . PerfFormatter::format_perf_data($start_time, $start_handle, $start_encode));
|
||||
echo($response);
|
||||
|
|
Loading…
Reference in a new issue