Disable drivers.json Cache Fix

This commit is contained in:
ssyyhhrr
2023-03-16 17:03:50 +00:00
parent 9aab080b3c
commit a4faf442ad
2 changed files with 2 additions and 4 deletions

View File

@@ -526,7 +526,7 @@ document.addEventListener('DOMContentLoaded', () => {
}
let scores = JSON.parse(localStorage.scores)
fillStats(stats, scores)
fetch(`${window.location.href}/drivers.json`).then(res => {
fetch(`${window.location.href}/drivers.json?nocache=${new Date().getTime()}`).then(res => {
res.json().then(result => {
driversObj = result
Object.entries(result).forEach(driver => {