mirror of
https://github.com/christianvidalwolf-prog/CrazeAnalytix.git
synced 2026-08-03 13:05:24 +02:00
Auto-Sync and Manual Refresh: Ensured fresh data on reload and added Sync button
This commit is contained in:
+7
-1
@@ -14,7 +14,13 @@ export default async function handler(req: VercelRequest, res: VercelResponse) {
|
||||
|
||||
try {
|
||||
console.log('[fetch-ads] Fetching Ads from Dropbox...');
|
||||
const response = await fetch(ADS_DROPBOX_URL);
|
||||
const response = await fetch(ADS_DROPBOX_URL, {
|
||||
cache: 'no-store',
|
||||
headers: {
|
||||
'Pragma': 'no-cache',
|
||||
'Cache-Control': 'no-cache'
|
||||
}
|
||||
});
|
||||
|
||||
if (!response.ok) {
|
||||
throw new Error(`Dropbox responded with ${response.status}`);
|
||||
|
||||
Reference in New Issue
Block a user