dixitramjendra commited on
Commit
fb69074
·
1 Parent(s): 9e88c51

Fix: Add cache-busting to fetch calls

Browse files
Files changed (1) hide show
  1. forex_macd_dashboard.html +3 -3
forex_macd_dashboard.html CHANGED
@@ -537,8 +537,8 @@
537
 
538
  const debug = document.getElementById('debugInfo');
539
  try {
540
- // Fetch signals
541
- const signalsRes = await fetch('forex_macd_signals.json');
542
  if (signalsRes.ok) {
543
  cachedData = await signalsRes.json();
544
  lastFetchTimes.signals = Date.now();
@@ -846,7 +846,7 @@
846
  container.className = 'history-mode';
847
 
848
  try {
849
- const res = await fetch('signal_history.json');
850
  if (!res.ok) throw new Error('History not found');
851
  const history = await res.json();
852
  lastFetchTimes.history = Date.now();
 
537
 
538
  const debug = document.getElementById('debugInfo');
539
  try {
540
+ // Fetch signals with cache busting
541
+ const signalsRes = await fetch('forex_macd_signals.json?t=' + Date.now());
542
  if (signalsRes.ok) {
543
  cachedData = await signalsRes.json();
544
  lastFetchTimes.signals = Date.now();
 
846
  container.className = 'history-mode';
847
 
848
  try {
849
+ const res = await fetch('signal_history.json?t=' + Date.now());
850
  if (!res.ok) throw new Error('History not found');
851
  const history = await res.json();
852
  lastFetchTimes.history = Date.now();