[deploy] PWA Cache-Control Header hinzugefügt
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:
Eduard Wisch 2026-04-13 13:15:33 +02:00
parent a31e063e7a
commit 0c6a262fe4

View file

@ -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');