mirror of
https://github.com/ConnectedHumber/Air-Quality-Web
synced 2024-11-21 06:22:59 +00:00
API/fetch-data: Don't send a cache-control header with datetime=now
This commit is contained in:
parent
622b19392c
commit
aa3abc39eb
1 changed files with 1 additions and 1 deletions
|
@ -104,7 +104,7 @@ class FetchData implements IAction {
|
|||
// 4: Send response
|
||||
|
||||
// Send a cache-control header, but only in production mode
|
||||
if($this->settings->get("env.mode") == "production") {
|
||||
if($this->settings->get("env.mode") == "production" && $_GET["datetime"] !== "now") {
|
||||
header("cache-control: public, max-age=" . $this->settings->get("cache.max-age"));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue