diff --git a/public/js/app_control.js b/public/js/app_control.js index 253f747..96d8781 100644 --- a/public/js/app_control.js +++ b/public/js/app_control.js @@ -763,7 +763,8 @@ window.onload = async function () { method: 'GET', headers: { 'Authorization': `Bearer ${token}`, - } + }, + cache: 'no-store', }); const data = await res.json().catch(() => ([])); @@ -1968,7 +1969,7 @@ window.onload = async function () { async function refreshYears() { try { - const yearsRes = await fetch('/api/movies/years'); + const yearsRes = await fetch('/api/movies/years', { cache: 'no-store' }); const years = yearsRes.ok ? await yearsRes.json() : []; const cleanedYears = (Array.isArray(years) ? years : []) .map((y) => Number(y)) @@ -2245,7 +2246,7 @@ window.onload = async function () { adminMoviesBody.innerHTML = `