D3.json setup cache to false D3.json setup cache to false ajax ajax

D3.json setup cache to false


I had the same issue.I solved it by adding this code to the HEAD of the html document.

<meta http-equiv="cache-control" content="no-cache"> <meta http-equiv="expires" content="0"> <meta http-equiv="pragma" content="no-cache">

However, this will prevent the caching of every object in a certain page, so be careful with images, fonts and others.


I had luck with this when using an API that didn't allow url parameters:

d3.json('your url', {      cache: "no-store"}).then(...