fix: set a header that tells caches not to store the responses in a cache

This commit is contained in:
Dorian Niemiec 2024-12-18 18:49:06 +01:00
parent 1d518fe1d8
commit d8a44a8d7b
2 changed files with 2 additions and 0 deletions

View file

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

View file

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