fix: change Cache-Control header in "collect.php" file

This commit is contained in:
Dorian Niemiec 2024-12-19 16:17:04 +01:00
parent d8a44a8d7b
commit 17fe476541

View file

@ -6,7 +6,7 @@ $mysqlDriver = new mysqli_driver();
$mysqlDriver->report_mode = MYSQLI_REPORT_OFF; $mysqlDriver->report_mode = MYSQLI_REPORT_OFF;
header("Content-Type: application/json"); header("Content-Type: application/json");
header("Cache-Control: no-cache"); header("Cache-Control: no-store, no-cache, max-age=0, must-revalidate");
if ($_SERVER["REQUEST_METHOD"] == "POST") { if ($_SERVER["REQUEST_METHOD"] == "POST") {
if ( if (