admin管理员组文章数量:1417102
I am parsing a csv file that's on the server:
var readCSV = function(url){
Papa.parse(url, {
download: true,
header: true,
plete: function(results) {
listen = results.data;
}
});
}
Unfortunately still reads an old file from cache even though I have already replaced it on the server. Is there some way to prevent it from using the cache?
I am parsing a csv file that's on the server:
var readCSV = function(url){
Papa.parse(url, {
download: true,
header: true,
plete: function(results) {
listen = results.data;
}
});
}
Unfortunately still reads an old file from cache even though I have already replaced it on the server. Is there some way to prevent it from using the cache?
Share Improve this question asked Dec 29, 2017 at 8:46 ChrisChris 14.3k24 gold badges94 silver badges184 bronze badges1 Answer
Reset to default 10You could use a cachebuster to read your new file. So your URL should look like.
var readCSV = function(url){
Papa.parse(url+"?_="+ (new Date).getTime(), {
download: true,
header: true,
plete: function(results) {
listen = results.data;
}
});
}
本文标签: javascriptjs papaparse csv file from urlprevent cacheStack Overflow
版权声明:本文标题:javascript - js papa.parse csv file from url, prevent cache - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745253718a2649977.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论