[deploy] PWA Cache-Control Header hinzugefügt
All checks were successful
Deploy bericht / deploy (push) Successful in 1s
All checks were successful
Deploy bericht / deploy (push) Successful in 1s
Verhindert dass Browser die mobile_upload.php cached - Cache-Control: no-cache, no-store, must-revalidate - Pragma: no-cache - Expires: 0 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
a31e063e7a
commit
0c6a262fe4
1 changed files with 5 additions and 0 deletions
|
|
@ -30,6 +30,11 @@ require_once __DIR__.'/class/upload_token.class.php';
|
||||||
$token = (string) ($_REQUEST['token'] ?? '');
|
$token = (string) ($_REQUEST['token'] ?? '');
|
||||||
$tok = BerichtUploadToken::fetchValid($db, $token);
|
$tok = BerichtUploadToken::fetchValid($db, $token);
|
||||||
|
|
||||||
|
// Cache-Control: PWA-Seite NICHT cachen (immer frisch vom Server)
|
||||||
|
header('Cache-Control: no-cache, no-store, must-revalidate');
|
||||||
|
header('Pragma: no-cache');
|
||||||
|
header('Expires: 0');
|
||||||
|
|
||||||
// POST = Datei-Upload
|
// POST = Datei-Upload
|
||||||
if ($_SERVER['REQUEST_METHOD'] === 'POST' && !empty($_FILES['file']['tmp_name'])) {
|
if ($_SERVER['REQUEST_METHOD'] === 'POST' && !empty($_FILES['file']['tmp_name'])) {
|
||||||
header('Content-Type: application/json; charset=utf-8');
|
header('Content-Type: application/json; charset=utf-8');
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue