fix: prevent stale mastodon instance config from cache

This commit is contained in:
2026-07-08 07:21:48 +04:00
parent 9a017f5479
commit 05d01fb7bc
3 changed files with 8 additions and 4 deletions
+4
View File
@@ -4,6 +4,10 @@ require_once '../includes/config.php';
// Définir le type de contenu en JavaScript
header('Content-Type: application/javascript');
// Empêcher la mise en cache navigateur de la configuration dynamique
header('Cache-Control: no-store, no-cache, must-revalidate, max-age=0');
header('Pragma: no-cache');
header('Expires: 0');
?>
window.addEventListener("load", () => {
const mastodonTimeline = new MastodonTimeline.Init({