Implemented cache busting

pull/1049/head
Harish Vishwakarma 2024-10-25 12:21:42 +05:30
parent b7698d5ffa
commit 2cf1df2178
1 changed files with 4 additions and 1 deletions

View File

@ -87,7 +87,10 @@ const Home: React.FC = () => {
const csvUrl =
"https://docs.google.com/spreadsheets/d/e/2PACX-1vRY41D-NgTE6bC3kTN3dRpisI-DoeHG8Eg7n31xb1CdydWjOLaphqYckkTiaG9oIQSWP92h3NE-7cpF/pub?gid=0&single=true&output=csv";
Papa.parse<Server>(csvUrl, {
// Add cache-busting parameter to prevent browser caching
const urlWithCacheBust = `${csvUrl}&_cb=${Date.now()}`;
Papa.parse<Server>(urlWithCacheBust, {
download: true,
header: true,
dynamicTyping: true,