2.0 KiB
2.0 KiB
Browser Cache Issue - Fix Instructions
Problem
The browser is using cached JavaScript, causing:
- Old error messages
- HTTP 400 errors that don't match the actual API response
- Line numbers that don't match the current code
Solution
Method 1: Hard Refresh (Recommended)
- Chrome/Edge (Windows/Linux): Press
Ctrl + Shift + RorCtrl + F5 - Chrome/Edge (Mac): Press
Cmd + Shift + R - Firefox: Press
Ctrl + Shift + R(Windows/Linux) orCmd + Shift + R(Mac) - Safari: Press
Cmd + Option + R
Method 2: Clear Cache via Developer Tools
- Open Developer Tools (F12)
- Right-click the refresh button
- Select "Empty Cache and Hard Reload"
Method 3: Disable Cache in Developer Tools
- Open Developer Tools (F12)
- Go to Network tab
- Check "Disable cache" checkbox
- Keep Developer Tools open while testing
- Refresh the page
Method 4: Clear Browser Cache Completely
- Open browser settings
- Navigate to Privacy/Clear browsing data
- Select "Cached images and files"
- Choose "Last hour" or "All time"
- Click "Clear data"
- Refresh the page
Verification
After clearing cache, you should see:
- ✅ New console messages with detailed error logging
- ✅ "Loading stats, blocks, and transactions..." message
- ✅ "Fetching blocks from Blockscout: [URL]" message
- ✅ Either success messages or detailed error information
Expected Console Output (After Fix)
Success:
Ethers loaded from fallback CDN
Ethers ready, initializing...
Loading stats, blocks, and transactions...
Fetching blocks from Blockscout: https://explorer.d-bis.org/api/v2/blocks?page=1&page_size=10
✅ Loaded 10 blocks from Blockscout
If Error:
❌ API Error: {status: 400, ...}
🔍 HTTP 400 Bad Request Details:
URL: https://explorer.d-bis.org/api/v2/blocks?page=1&page_size=10
Response Headers: {...}
Error Body: {...}
Note
The API works correctly (verified via curl), so any HTTP 400 errors after clearing cache will show detailed information to help diagnose the actual issue.