From 0c6a262fe4a6192ce6b4208489dc389fa40b0877 Mon Sep 17 00:00:00 2001 From: Eduard Wisch Date: Mon, 13 Apr 2026 13:15:33 +0200 Subject: [PATCH] =?UTF-8?q?[deploy]=20PWA=20Cache-Control=20Header=20hinzu?= =?UTF-8?q?gef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- mobile_upload.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mobile_upload.php b/mobile_upload.php index 00da223..dff02c8 100644 --- a/mobile_upload.php +++ b/mobile_upload.php @@ -30,6 +30,11 @@ require_once __DIR__.'/class/upload_token.class.php'; $token = (string) ($_REQUEST['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 if ($_SERVER['REQUEST_METHOD'] === 'POST' && !empty($_FILES['file']['tmp_name'])) { header('Content-Type: application/json; charset=utf-8');