fix: set a header that tells caches not to store the responses in a cache
This commit is contained in:
parent
1d518fe1d8
commit
d8a44a8d7b
2 changed files with 2 additions and 0 deletions
|
@ -6,6 +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-store, no-cache, max-age=0, must-revalidate");
|
||||||
|
|
||||||
if (!isset($_GET["scope"])) {
|
if (!isset($_GET["scope"])) {
|
||||||
http_response_code(400);
|
http_response_code(400);
|
||||||
|
|
|
@ -6,6 +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");
|
||||||
|
|
||||||
if ($_SERVER["REQUEST_METHOD"] == "POST") {
|
if ($_SERVER["REQUEST_METHOD"] == "POST") {
|
||||||
if (
|
if (
|
||||||
|
|
Loading…
Reference in a new issue