diff --git a/public/js/app.js b/public/js/app.js index dfe053f..6905bec 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -37,7 +37,8 @@ const BASE_PATH = window.location.pathname.replace(/\/$/, ''); async function fetchAPI(endpoint) { const sep = endpoint.includes('?') ? '&' : '?'; - const res = await fetch(`${BASE_PATH}/api/${endpoint}${sep}${queryParams()}`, { headers: apiHeaders() }); + const url = `${BASE_PATH}/api/${endpoint}${sep}${queryParams()}&_t=${Date.now()}`; + const res = await fetch(url, { headers: apiHeaders(), cache: 'no-store' }); if (!res.ok) throw new Error(`API error: ${res.status}`); return res.json(); }