From aa3abc39eb2b52cba12092fb23d352056c7a3e24 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Sun, 24 Feb 2019 18:07:11 +0000 Subject: [PATCH] API/fetch-data: Don't send a cache-control header with datetime=now --- logic/Actions/FetchData.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logic/Actions/FetchData.php b/logic/Actions/FetchData.php index 53daba2..35810b5 100644 --- a/logic/Actions/FetchData.php +++ b/logic/Actions/FetchData.php @@ -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")); }