mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-06 08:38:37 +00:00
Implemented cache busting
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user