Implemented cache busting
parent
d104301049
commit
b22b9ea5ce
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue