API/fetch-data: Don't send a cache-control header with datetime=now

pull/26/head
Starbeamrainbowlabs 4 years ago
parent 622b19392c
commit aa3abc39eb
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2

@ -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…
Cancel
Save