Auto-Sync and Manual Refresh: Ensured fresh data on reload and added Sync button

This commit is contained in:
Christian Vidal Wolf
2026-01-27 15:02:18 +01:00
parent 1438049c71
commit 19fbd12e77
3 changed files with 42 additions and 9 deletions
+7 -1
View File
@@ -14,7 +14,13 @@ export default async function handler(req: VercelRequest, res: VercelResponse) {
try {
console.log('[fetch-data] Fetching from Dropbox...');
const response = await fetch(DROPBOX_URL);
const response = await fetch(DROPBOX_URL, {
cache: 'no-store',
headers: {
'Pragma': 'no-cache',
'Cache-Control': 'no-cache'
}
});
if (!response.ok) {
throw new Error(`Dropbox responded with ${response.status}`);