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

This commit is contained in:
Starbeamrainbowlabs 2019-02-24 18:07:11 +00:00
parent 622b19392c
commit aa3abc39eb
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -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"));
}